for(string s:input("",CW,"")){int l=length(s);write(substr(s+substr(s,1,l-2)+s,l-1,l));}