Help me in solving PREQ18 problem

My issue

pls sow me the answer

My code

# Update the program below to solve the problem

t = int(input())            
for i in range(t):          
    X, Y, Z = map(int, input().split())
    
    if(Z%X == 0 and Z%Y ==0):
        print(ÄNY)
        
    elif( Z%X ==0  ):
        print("CHICKEN")
        
        elif( Z%Y ==0):
            print("DUCK")
            else:
                print("NONE")
    

Learning course: Design and Analysis of Algorithms
Problem Link: Problem(Farm animals) - Solve the complete problem in Design and Analysis of Algorithms