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