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