a=io.read()b=#a/2+.5 for i=1,#a do s=""for j=1,#a do x=(i==j or j==b or j==#a-i+1)and a:sub(i,i)or" "s=i==b and a or s..x end print(s)end