s = set(input()) t = 'abcdefghijklm' u = set(t) - s if len(u) == 1: print(*u) elif len(u) == 0: print('\n'.join(t)) else: print('Impossible')