#28126: _CPP


11030067@mail.hpsh.tp.edu.tw (和平110級鄧雨珊)


#include <iostream>
using namespace std;

int main(){
string x;
while (cin >> x){
int len=x.size();
for (int i=0; i<len; i++){
for (int j=0; j<len; j++){
cout << x[(i+j)%len];
}
cout <<endl;
}
}
}