y=" "*9 while 1: c="" for a,b in zip(input(),y):c+=max(a,b) y=c;print(c)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page