#include #include using namespace std; int cnt[13]; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); string S;cin>>S; for(char c:S)cnt[c-'a']++; int OK=0; for(int i=0;i<13;i++) { cnt[i]++; bool ok=true; for(int j=0;j<13;j++)if(!cnt[j])ok=false; if(ok)OK++,cout<<(char)(i+'a')<<"\n"; cnt[i]--; } if(!OK)cout<<"Impossible\n"; }