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