Help me in solving LB02A problem

My issue

i am confused in building the logic to the problem

My code

t = int(input())
for i in range(t)
   X,Y = map(int,input().split())
   if X = 2 and Y = 3

Learning course: Solve Programming problems using Python
Problem Link: CodeChef: Practical coding for everyone

@thouffic_04
The logic is if Z%X==0 and Z%Y==0 then answer would be “any”.
if only Z%X==0 then answer would be “chicken”
if only Z%Y==0 then answer would be “duck”
else it would be “any”.