Unable to get output

My issue

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("ANY")
    elif Z%X ==0:
        print("CHICKEN")
    elif Z%Y ==0:
        print("DUCK")
    else:
        print("NONE")

Learning course: Kalasalingam Academy of Research and Education
Problem Link: CodeChef: Practical coding for everyone