import sys input=lambda: sys.stdin.readline().rstrip() A=["a","b","c","d","e","f","g","h","i","j","k","l","m"] B=["a","b","c","d","e","f","g","h","i","j","k","l","m"] S=input() for s in S: while s in A: A.remove(s) if not A: for b in B: print(b) elif len(A)==1: print(*A) else: print("Impossible")