var s,t:string(9999);i,j:word;begin repeat readln(t);str(s,t:-14,s)until eof;for j:=1to 14do for i:=0to 99do write(Trim(copy(s,14*i+j,1)))end.