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.
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page