#include <iostream>
#include <cstring>
using namespace std;
const int MAX_SIZE = 100;
void readAllSufix(char a[]) {
int n = strlen(a), dif = 1;
for (int i = 0; i < n; ++i) {
for (int j = n - dif; j < n; ++j) {
cout << a[j];
}
cout << "\n";
++dif;
}
}
int main() {
char row[MAX_SIZE];
cin.getline(row, MAX_SIZE);
readAllSufix(row);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNvbnN0IGludCBNQVhfU0laRSA9IDEwMDsKCnZvaWQgcmVhZEFsbFN1Zml4KGNoYXIgYVtdKSB7CglpbnQgbiA9IHN0cmxlbihhKSwgZGlmID0gMTsKCWZvciAoaW50IGkgPSAwOyBpIDwgbjsgKytpKSB7CgkJZm9yIChpbnQgaiA9IG4gLSBkaWY7IGogPCBuOyArK2opIHsKCQkJY291dCA8PCBhW2pdOwoJCX0KCQljb3V0IDw8ICJcbiI7CgkJKytkaWY7Cgl9Cn0KaW50IG1haW4oKSB7CgljaGFyIHJvd1tNQVhfU0laRV07CgljaW4uZ2V0bGluZShyb3csIE1BWF9TSVpFKTsKCXJlYWRBbGxTdWZpeChyb3cpOwoJcmV0dXJuIDA7Cn0=