For this Question: Doctor Strange stumbles upon a rather curious artefact while spending holidays in Egypt. An antique board game but it can only be unlocked by a magical die. The only clue on the box is to get a sum of B by throwing the die A times. Help Doctor Strange if it is possible to get the particular sum. Print “YES” if it is possible, otherwise print “NO”.

Note:- Consider the die to be a regular one with face {1, 2, 3, 4, 5, 6}.The input contains two integers A and B separated by spaces.

Constraints:-
•	1≤A≤100
•	1≤B≤1000
A and B are integers.Print "YES" if it is possible to get a Sum of B by throwing die A times else print "NO".Sample Input:-
10 100

Sample Output:-
NO

Sample Input:-
6 30

Sample Output:-
YES, I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
	public static void main (String[] args) {

    Scanner sc =new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    if (B<A || B>A*6) {
        System.out.print("NO");
    }
    else {
        System.out.print("YES");
    }

	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?