s = set(input()) t = 'abcdefghijklm' u = set(t) - s if len(u) == 1: print(*u) elif len(u) == 0: for i in t: print(i) else: print('Impossible')