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