#include #include #include #include #include #define all(x) x.begin(),x.end() #define pb push_back #define ll long long using namespace std; int main() { string n; cin >> n; vector a; string smp= "abcdefghijklm"; for (char i = 'a'; i <= 'm'; i++) { string T = n + i; sort(all(T)); bool cnt = 0; for (char d = 'a'; d <= 'z'; d++) { string e = smp + d; sort(all(e)); if (T == e) cnt = 1; } if (cnt) a.pb(i); } if (a.empty()) cout << "Impossible" << endl; else for(int j=0;j