h,t='',''for c in io.read():gfind'.'do if c<t:sub(1,1)then h=h..c else t=t<c and t..c or c..t end end print(h..t)

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page