T = "abcdefghijklm" S = input() if len(set(list(S))) == 13: for R in T: print(R) exit(0) if len(set(list(S))) <= 11: print("Impossible") exit(0) print((set(list(T)) - set(list(S))).pop())