l=list(open("/dev/fd/0")) print"".join(sorted(l,cmp,l.index))