let n = stdin.ReadLine() |> int64 let mutable flg = false let mutable i = 1L while i <= 1000000L do if i * i * i = n then flg <- true i <- i + 1L if flg then "Yes" else "No" |> printfn "%s"