#include<iostream.h> #include<string.h> int main() { char a[100]; cin>>a; while(strlen(a)>0) { cout<<a; cout<<endl; strcpy(a,a+1); strcpy(a+strlen(a)-1,a+strlen(a)); } return 0; }