Back and forth by Hendrik

i=b=0
while 1:
 for s in raw_input().split():
\x09if i:b=len(p)-len(s);s=s[::-1]
\x09p=b*' '+s;print p;i^=1

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

download

return to the top page