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