#include #include #include #include #include #include #include #include #include #include using namespace std; #ifdef _WIN32 #include #endif int main() { string s, t = "abcdefghijklm", t2 = "abcdefghijklm"; cin >> s; if (s.size() != 13){ cout << "impossible" << endl; return 0; } for (int i = 0; i < 13; i++){ for (int j = 0; j < t.size(); j++){ if (s[i] == t[j]){ t.erase(t.begin()+j); break; } } } if (t.size() == 1) cout << t << endl; else if (t.size() == 0){ for (char c : t2){ cout << c << endl; } } else cout << "impossible" << endl; }