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