https://www.codechef.com/problems/CHEFADV

Here is my solution for the above problem:

#include
using namespace std;

int main() {
int t=0;
cin>>t;
int n,m,x,y;
while(t–){
cin>>n>>m>>x>>y;
if(n%x==1 && m%y==1)
cout<<“Chefirnemo”<<endl;
else if(n%x==2 && m%y==2)
cout<<“Chefirnemo”<<endl;
else
cout<<“Pofik”<<endl;
}
return 0;
}

This is failing the both the subtasks and the editorial also has the same solution.
I dont know what corner case i am missing.Please help me out.

Edit:
I realized i was missing one of the sample test cases: 2 2 1 2
and i updated my code as following CodeChef: Practical coding for everyone , still both subtasks are failing.