#include #include #include #include using namespace std; typedef long long ll; int main(){ string s; cin >> s; map mp; for(auto i : s){ mp[i]++; } if(mp.size() != 7){ cout << "Impossible" << endl; exit(0); } int cnt = 0; for(auto i : mp){ if(i.second == 1)cnt++; } if(cnt > 1){ cout << "Impossible" << endl; exit(0); } for(auto i : mp){ if(i.second == 1){ cout << i.first << endl; } } return 0; }