using static System.Math; using System; public class Hello { static void Main() { var n = long.Parse(Console.ReadLine().Trim()); getAns(n); } static void getAns(long n) { var p = Pow(n, 1 / 3d); var ans1 = (long)p; var ans2 = ans1 + 1L; var ans3 = ans1 - 1L; if (ans1 * ans1 * ans1 == n) { Console.WriteLine("Yes"); return; } if (ans2 * ans2 * ans2 == n) { Console.WriteLine("Yes"); return; } if (ans3 * ans3 * ans3 == n) { Console.WriteLine("Yes"); return; } Console.WriteLine("No"); } }