#include #include #include #include int main() { std::string s; std::cin >> s; std::vector cnt(26); bool two = false; bool other = false; for (char c : s) { if (++cnt[c - 'a'] >= 2) { two = true; } if (c > 'm') { other = true; } } if (other) { puts("Impossible"); return 0; } if (two) { for (int i = 0; i < 13; i++) { if (cnt[i] == 0) { std::cout << (char)(i + 'a') << std::endl; } } } else { for (int i = 0; i < 13; i++) { std::cout << (char)(i + 'a') << std::endl; } } }