import java.util.*; import java.io.*; import java.math.*; // import java.util.stream.Stream; class Main{ static BufferedReader buff = new BufferedReader(new InputStreamReader(System.in)); static StringTokenizer st; static PrintWriter output = new PrintWriter(System.out); static Scanner sc = new Scanner(System.in); public static void main(String[] args) throws IOException{ long n = sc.nextLong(); boolean ok = false; for(long i=1;i<=1000000;i++) { if( i * i * i == n ) ok = true; } output.print(ok?"Yes":"No"); output.flush(); } }