#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main(void) { string s; cin >> s; map m; for(int i=0; isecond == 1) { x++; c = i->first; } else if(i->second == 2) { y++; } } if(x == 1 && y == 6) cout << c << endl; else cout << "Impossible" << endl; return 0; } // EOF