import std.stdio;void main(){auto s=readln;foreach(i,c;s.reverse)s=c~s,writeln(s[0..2*i+2]);}