s=input();r=s[::-1];n=len(s)-1;i=0;S=''while i<=n:S+=s[i:]+s[:n-i]+r[i+2:]+r[:n-i];i+=2print S
"cena!"
cena!cenanec!anena!cec!a!
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!