var s:string;i,j,l:word;begin read(s);l:=length(s);for i:=1to l do for j:=1to i do writeln(s[l-i+1..l-i+j])end.