Help me in solving GDTURN problem

My issue

what test case one

My code

#include <stdio.h>

int main(void) {
	int T;
	for(int i=0;i<T;i++){
	    int X,Y;
	   
	    if((X+Y)<6)
	     if((X+Y)==6)printf("NO");
	    else{
	        printf("YES");
	    }
	  
	    
	}
	return 0;
}


Problem Link: GDTURN Problem - CodeChef

@maddulavenkat
plzz refer the following solution

#include <stdio.h>

int main() {
	// your code goes here
	
	int T,n;
	scanf("%d", &T);
	
	for(n=1;n<=T;n+=1){
	    int dice1,dice2;
	   // printf("enter the 2 nos. : ");
	    scanf("%d %d",&dice1 , &dice2);

	    
	    if(dice1+dice2<=6){
	        printf("NO\n");
	    } else {
	        printf("YES\n");
	    }
	}
	
	return 0;
}