Help me in solving TOP10 problem

My issue

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 read=new Scanner(System.in);
		int t=read.nextInt();
		for (int i=0; i<t; i++){
		    int X= read.nextInt();
		    if(X<=10){
		        System.out.println("yes");
		    }
		    else{
		        System.out.println("no");
		    }
		}
		    
	}
}
	

Problem Link: TOP10 Problem - CodeChef

@jobinjose07 t is the number of testcases and given a loop which is run for the number of testcases, take input of ‘x’. if the rank is in the top 10 print “yes” else print “no”

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
{
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
for(int i=0 ; i<t ; i++){
int x = sc.nextInt();
if(x <= 10)
System.out.println(“YES”);
else
System.out.println(“NO”);
}
}
}