n = int(input()) for i in range(1,n): if i**3 == n: print("Yes") exit() if i**3 > n: break print("No")