n = int(input()) ok = 0 ng = n while ng - ok > 1: mid = (ok + ng) // 2 if mid**3 <= n: ok = mid else: ng = mid if ok**3 == n: print("Yes") else: print("No")