#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //#include #define rep(i,n) for(int i=0;i<(n);i++) #define all(x) x.begin(), x.end() #define rall(x) x.rbegin(), x.rend() #define sz(x) ((int)(x).size()) #define pb push_back using ll = long long; using namespace std; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> S; vector ans; string oks="abcdefghijklm"; for(char c='a';c<='m';c++){ string T=S+c; sort(all(T)); int ok=0; for(char d='a';d<='z';d++){ string U = oks+d; sort(all(U)); if(T==U) ok=1; } if(ok) ans.pb(c); } if(ans.empty()) cout << "Impossible" << endl; else rep(i,sz(ans)) cout << ans[i] << endl; return 0; }