r=raw_input() i=l=len(r) for c in r:i-=2;print~i and(c+c.center(abs(i+1)-1)+c).center(l)or r