Help me in solving CPPFALL325 problem

My issue

hidden test case failed

My code

// Update the '_' in the code below with the expected output

#include <bits/stdc++.h>
using namespace std;

int main() 
{
 int X = 3;
 int Y = 4;
 int Z = 12;
 if ((Z%X == 0) and (Z%Y == 0))
    {
     cout<<"ANY"<<endl;
    }
 else if (Z%X == 0)
    {
     cout<<"CHICKEN"<<endl;
    }
 else if (Z%Y == 0)
    {
     cout<<"DUCK"<<endl;
    }
 else
    {
     cout<<"NONE"<<endl;
    }

 X = 3;
 Y = 5;
 Z = 13;
 if ((Z%Y == 0) and ( Z%Y == 0))
    {
     cout<<"ANY"<<endl;
    }
 else if (Z%X == 0)
    {
     cout<<"CHICKEN"<<endl;
    }
 else if (Z%Y == 0)
    {
    cout<<"DUCK"<<endl;
    }
 else
    {
    cout<<"NONE"<<endl;
    }

return 0;
}

Learning course: Learn Programming and Problem Solving using C++
Problem Link: https://www.codechef.com/learn/course/sit-cpp-fall/SITFALL50/problems/CPPFALL325