r=raw_input() i=l=len(r) while i:i-=1;m=min(i,l+~i);s=r[m:l-m].center(l);print s[0]+r[1]+s[2:-2]+r[-2]+s[-1]