#include using namespace std; int main(){ string s; cin >> s; map mp; for(int i=0;i<26;i++) mp['a'+i]=0; for(int i=0;i2 || ans=='1' || (ans!='0'&&ans!='1'&&mp['a'+i]==1)) ans='1'; else if(mp['a'+i]==1 && ans=='0') ans='a'+i; else if(mp['a'+i]==0) ans2='a'+i; } if(ans=='0') cout << ans2 << endl; else if(ans!='1') cout << ans << endl; else cout << "Impossible" << endl; return 0; }