var s,t:string;l,m:comp;begin read(s);l:=length(s);m:=l*2-1;str(0:m,t);repeat t:=^`+t;t[l]:=s[l];writeln(t:m);dec(l)until 1=0end.
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page