Help me in solving SEVENRINGS problem

My issue

Main.java:18: error: reached end of file while parsing
}
^
1 error

My code

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int t = scanner.nextInt();

        while (t-- > 0) {
            int n = scanner.nextInt();
            int x = scanner.nextInt();
            // Your code goes here
            if((n*x)>=10000&&(n*x)<=99999){
                System.out.println("YES");
        }else{
            System.out.println("NO");
        }
    }
}

Learning course: Basic Math using Java
Problem Link: 7 Rings Practice Problem in - CodeChef

@captainvenky
cozz u have missed one } .
just see it carefully u will find it by youself.