var s:string;i,l:comp;begin read(s);l:=length(s);for i:=-l-1to-2do writeln(copy(s+s,-i):l)end.