s=raw_input();d=l=len(s)-1 while~d<l: \x09e=l;r='' \x09for c in s:r+=[c,' '][e%(l-2)>0<e*e>d*d];e-=2 \x09print r;d-=2
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page