Help me in solving FOOTCUP problem

My issue

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int n;
	cin>>n;
	while(n--)
	{
	    int a,b;
	    cin>>a>>b;
	    if( a>=1 && b>=1)
	    cout<<"YES"<<endl;
	    else
	    cout<<"NO"<<endl;
	}
	return 0;
}

Problem Link: FOOTCUP Problem - CodeChef