import std.stdio;void main(){char[]t,s=readln;foreach(i,c;s)t=s[$+~i..$],writefln=t~t.dup.reverse;}