object Main extends App { val sc = new java.util.Scanner(System.in) val n = sc.nextLong (1L to List(n, 1000000L).min).takeWhile(p => p * p * p <= n).find(p => p * p * p == n) match { case Some(_) => println("Yes") case None => println("No") } }