s=raw_input() n=len(s) for i in range(n): t=s if i!=n/2:t=n*[' '];t[i]=t[n/2]=t[n-i-1]=s[i] print''.join(t)