using System; using System.Collections.Generic; using System.Linq; // https://yukicoder.me/problems/no/1585 class Program { static string InputPattern = "InputX"; static List GetInputList() { var WillReturn = new List(); if (InputPattern == "Input1") { WillReturn.Add("1331"); //Yes } else if (InputPattern == "Input2") { WillReturn.Add("288"); //No } else if (InputPattern == "Input3") { WillReturn.Add("1000000000000000000"); //Yes } else { string wkStr; while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr); } return WillReturn; } static void Main() { List InputList = GetInputList(); long N = long.Parse(InputList[0]); for (long I = 1; I * I * I <= N; I++) { if (I * I * I == N) { Console.WriteLine("Yes"); return; } } Console.WriteLine("No"); } }