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