q="" for c in open(0).read():q>c!=print(end=(q+c)[p>c]);p,q=q,c
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page