#include using namespace std; int main() { string S; cin >> S; vector V(13); for (int i = 0; i < 13; i++) V.at(S.at(i) - 'a')++; int x, cnt = 0; for (int i = 0; i < 13; i++) if (!V.at(i)) x = i, cnt++; if (!cnt) { for (char c = 'a'; c <= 'm'; c++) cout << c << "\n"; } else if (cnt == 1) { cout << char('a' + x) << "\n"; } else { cout << "Impossible" << "\n"; } }