import sys a=('Tom', 'Tony', 'Allen', 'Cydin', 'Lucy', 'Anna') b=input() if b in a: print(a) print('Congratulations!') else: print(a) print('What a pity!')