#include using namespace std; int main(){ map mp; string str; string abc = "abcdefghijklm"; int cnt = 0, cnt2[100] = {0}; char daburi = 0; int tmp, zero_cnt = 0; cin >> str; sort(str.begin(), str.end()); for(int i = 0; i < 13; i++){ cnt2[str[i] - 'a']++; } for(int i = 0; i < 13; i++){ if(cnt2[i] == 0){ tmp = i; zero_cnt++; } } for(int i = 0; i < str.size(); i++){ mp[str[i]]++; } for(auto itr = mp.begin(); itr != mp.end(); itr++){ if(itr->second != 0){ cnt++; } if(itr->second == 2){ daburi = itr->first; } } if(daburi != 0 && cnt == 12 && zero_cnt == 1){ cout << abc[tmp] << endl; }else if(daburi == 0 && cnt == 13){ for(auto itr = mp.begin(); itr != mp.end(); itr++){ cout << itr->first << endl; } }else{ cout << "Impossible" << endl; } return 0; }