//#define __USE_MINGW_ANSI_STDIO 0 #include using namespace std; typedef long long ll; typedef vector VI; typedef vector VVI; typedef vector VL; typedef vector VVL; typedef pair PII; #define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; ++i) #define REP(i, n) FOR(i, 0, n) #define ALL(x) x.begin(), x.end() #define IN(a, b, x) (a<=x&&x> s; REP(i, s.size()) { cnt[s[i]-'a']++; } int f = 0, g = 0, h = 0, idx; REP(i, 13) { if(cnt[i] == 0) f++, idx = i; if(cnt[i] == 1) g++; if(cnt[i] == 2) h++; } // cout << f << " " << g << " " << h << endl; if(g == 13) { REP(i, 13) cout << (char)('a'+i) << endl; } else if(f == 1 && g == 11 && h == 1) { cout << (char)('a'+idx) << endl; } else { cout << "Impossible" << endl; } return 0; }