import sys

a=['Tom','Tony','Allen','Cydin','Lucy','Anna']
q=input()
print(tuple(a))
boole=True
for i in range(len(a)):
    if a[i]==q:
        print("Congratulations!")
        boole=False
        break

if boole:
    print("What a pity!")