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