import std.stdio;void main(){for(char c,d;scanf("%c%c",&c,&d)>1;)write(d,c);}