S = set(input()) T = set('abcdefghijklm') if len(S&T) == 13: for a in sorted(T): print(a) elif len(S&T) == 12: print((T-S).pop()) else:print('Impossible')