s=raw_input() l=len(s);i=l/2;p=1 for c in s:i-=p;k=i<0;p-=2*k;print k*s or(i*' ').join(c*3).center(l)