S = input() T = S + 'abcdefghijklm' if len(set(T)) > 13 or len(set(S)) < 12: print('Impossible') else: for s in 'abcdefghijklm': if s not in set(S) or len(set(S)) == 13: print(s)