Help me in solving GDTURN problem

My issue

how can i take multiple user input in this code , my code is terminating just after 1 input test.

My code

/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();
		int x = sc.nextInt();
		int y = sc.nextInt();
	    while(x+y<=6){
	        System.out.println("NO");
	        t++;
	    }
	}
}

Learning course: Practice Java
Problem Link: CodeChef: Practical coding for everyone

@naman_9996
plzz refer the following solution for better understanding of the implementation .

/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		for(int i=0;i<t;i++){
		    int n1=sc.nextInt();
		    int n2=sc.nextInt();
		    if((n1+n2)>6)
		    {
		        System.out.println("YES");
		    }
		    else
		    {
		        System.out.println("NO");
		    }
		}
	}
}