string str;long long length;cin >> str;length = str.size();for (long long i = 0; i < length; i++){for (long long j = 0; j < length; j++){cout << str[(i+j)%length];}cout << endl;}