using c=System.Console;class _{static void Main(){var s=c.ReadLine();for(int l=s.Length,m=l-1;l-->0;s=s[m]+s.Substring(0,m))c.WriteLine(s);}}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page