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