#include using namespace std; int main(){ char ans='1',pre='1'; string s; cin >> s; sort(s.begin(),s.end()); int cnt=0; for(int i=0;i2) ans='0'; if(cnt==1 && ans=='1') ans=pre; cnt=1; pre=s[i]; } } if(ans!='0') cout << ans << endl; else cout << "Impossible" << endl; return 0; }