#include using namespace std; string alphs="abcdefghijklmnopqrstuvwxyz"; int main() { string str; cin >> str; int alph[26]={0}; for(int i=0; i<(int)str.size(); ++i){ for(int j=0; j<26; ++j){ if(str[i]==alphs[j]){ alph[j]++; if(alph[j]>=2&&j>=14){ cout << "Impossible" << endl; return 0; } break; } } } bool flag=true; for(int i=0; i<13; ++i) if(alph[i]==2) flag = false; if(!flag){ for(int i=0; i<13; ++i){ if(alph[i]==0) { cout << alphs[i] << endl; return 0; } } }else{ for(int i=0; i<13; ++i) cout << alphs[i] << endl; } return 0; }