S = set(input()) T = set('abcdefghijklm') if len(S&T) == 13: print('\n'.join(T)) elif len(S&T) == 12: print((T-S).pop()) else:print('Impossible')