#include #include #include using namespace std; #define repeat(i,n)for(int i=0;i<(n);i++) int main(){ string S; cin>> S; vector cnt(26, 0); vector v; for(char c: S) cnt[c-'a']++; for(int i=0; i<='m'-'a'; i++){ cnt[i]++; int c1=0, c2=0; for(int j=0; j<='m'-'a'; j++){ c1+=cnt[j]==1; c2+=cnt[j]==2; } if(c1==12 and c2==1){ v.push_back((char)(i+'a')); } cnt[i]--; } if(v.empty()){ cout<< "Impossible"<< endl; }else{ for(char e: v) cout<< e<< endl; } return 0; }