#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; for(char c='a';c<='m';c++){ string T=S+c; sort(all(T)); int ok = 1; rep(i,sz(T)-2){ if(T[i]==T[i+2]) ok=0; } if(ok) ans.pb(c); } if(ans.empty()) cout << "Impossible" << endl; else rep(i,sz(ans)) cout << ans[i] << endl; return 0; }