txt = 'abcdefghijklm' S = input().strip() lst = [i for i in txt if i not in S] if len(lst) > 1: print('Impossible') elif len(lst) == 1: print(lst[0]) else: for i in txt: print(i)