#include #include using namespace std; int main(){ char S[14]; for(int i=0; i<13; i++) cin >> S[i]; S[13]='\n'; sort(S, S+13); bool odd=0; char ans='\n'; for(int i=0; i<13; i++){ if(!odd){ if(S[i]==S[i+1] && S[i]!=S[i+2]){ i++; }else if(S[i]==S[i+1]){ ans = 'I'; break; }else{ ans = S[i]; odd = 1; } }else{ if(S[i]==S[i+1] && S[i]!=S[i+2]){ i++; }else{ ans = 'I'; break; } } } if(ans=='I' || ans=='\0' || ans=='\n')cout<<"Impossible\n"; else cout<