a=raw_input().split() i=1 for w in a:print' '.join(a);t=w+a[i];j=len(a[i]);i+=1;a[i-2:i]=t[:j],t[j:]
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page