For this Question: Given a number N. Find whether the given number is a perfect cube.

Expected Time Complexity: O(log n)First line contains an integer N

Constraints
1 <= N <= 100000Print "YES" if x is a perfect cube otherwise print "NO".Sample Input:
8

Output:
YES

Sample Input:
7

Output:
NO, I have written this Solution Code: import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main
{
public static void main(String[] args) throws IOException
{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));


int n=Integer.parseInt(reader.readLine());

int cbrt = (int) Math.cbrt(n);

if(cbrt*cbrt*cbrt == n)
{
System.out.println("YES");
}
else
{
System.out.println("NO");
}
}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?