S,A,Z,R=input(),'abcdefghijklm',set(),range(13) for i in R: for j in R: if A in ''.join(sorted(S[:i]+A[j]+S[i+1:])):Z.add(A[j]) print(('\n'.join(sorted(Z)),'Impossible')[Z==set()])