Help me in solving GDTURN problem

My issue

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int x,y;
	cin>>x>>y;
while(x>0 && y>0)
	   
	    cin>>x>>y;
	    if(x+y>6){
	        cout<<"YES"<<endl;
	    }
	    else{
	        cout<<"NO"<<endl;
	    
	}
	
	return 0;
}

Problem Link: GDTURN Problem - CodeChef

@riteshkumar620
u have to put the code in test case loop like this
include
using namespace std;

int main() {
// your code goes here
int t;
cin>>t;
while(t–)
{
int x,y;
cin>>x>>y;
if(x+y>6)
cout<<“YES”;
else
cout<<“NO”;
cout<<endl;
}
return 0;
}