import math N = int(input()) x = int(math.pow(N, 1/3)) for i in range(10): if (x+i)**3==N or (x-i)**3==N: print("Yes") exit() print("No")