using c=System.Console;class _{static void Main(){string s=c.ReadLine();for(int l=s.Length,m=l-1;l-->0;s=s[m]+s.Substring(0,m))c.WriteLine(s);}}