#include #include #include int main() { using namespace std; string s; cin >> s; map cc; for (const char c: s) { if (cc.find(c) == cc.end()) { cc[c] = 1; } else { cc[c]++; } } if (cc.size() != 7) { cout << "Impossible" < n: cc) { if (n.second == 1) { res = n.first; } else if (n.second > 2) { cout << "Impossible" <