s=raw_input() k=n=len(s) for c in s:print[s,'%%-%ds'%(k/2)%c*2+c][k!=1].center(n);k-=2
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page