s,c,i,e,v=input(),6,1,1,0 s=' '+s+' ' for c in range(2,len(s)*2-2): i,k=1,'' if e else s[c//2] while 0<(c//2-i) and (c//2+i)