i = input() s = list('abcdefghijklm') if len(set(i)) == 13: print('\n'.join(s)) elif len(set(i)) == 12: print((set(s) - set(i)).pop()) else: print('Impossible')