#include #include #include using namespace std; int main() { string s; while (cin >> s) { set set1; for (int i = 0; i < s.size(); i++) { set1.insert(s.substr(i)); } for (string it : set1) { cout << it << endl; } } return 0; } // 64 位输出请用 printf("%lld")