var s:string;begin repeat readln(s);writeln(s,^j,s)until 0<0end.