#include using namespace std; #define MOD 1000000007 #define INF 2000000000 //#define int ll #define ll long long #define ld long double #define vi vector #define p pair #define fi first #define se second #define pb push_back #define mp make_pair #define INIT ios::sync_with_stdio(false);cin.tie(0); #define VAR(type, ...)type __VA_ARGS__;MACRO_VAR_Scan(__VA_ARGS__); template void MACRO_VAR_Scan(T& t) { cin >> t; } templatevoid MACRO_VAR_Scan(First& first, Rest&...rest) { cin >> first; MACRO_VAR_Scan(rest...); } #define VEC(type, c, n) vector c(n);for(auto& i:c)cin>>i; #define MAT(type, c, m, n) vector> c(m, vector(n));for(auto& r:c)for(auto& i:r)cin>>i; #define BR cout << "\n"; #define SP cout << " "; #define ENDL cout<=0;--i) #define FOR(i, m, n) for(int i = m;i < n; i++) #define RFOR(i, a, b) for(int i=(b)-1;i>=(a);--i) #define AREP(a, n) for(auto (a):(n)) #define ALL(a) (a).begin(),(a).end() #define IN(n, a, b) ((a)<=(n)&&(n)<(b)) signed main(){ INIT; VAR(string, s); AREP(c, s)if(!IN(c, 'a', 'o')){ OUTL("Impossible"); RET; } char one = '\0', two; FOR(c, 'a', 'm'+1){ int cnt = 0; AREP(a,s)if(a==c)cnt++; if(cnt==0)one=c; if(cnt==2)two=c; if(cnt>2){ OUTL("Impossible"); RET; } } if(one!='\0'){ OUTL(one); }else{ FOR(c, 'a', 'm'+1) if(c!=two){ OUTL((char)c); } } RET;}