S = "abcdefghijklm" I = input() f = False for s in S: if set(I + s) == set(S): # ある文字を足すとa~kの13種類全部が揃う場合 print(s) f = True if not f: print("Impossible")