a=list(open('/dev/fd/0')) print"".join(sorted(a,key=a.index))