import math N = int(input()) p = 0 flag = False for n in range(1,10 ** 6+1): if N == n ** 3: flag = True if flag: print('Yes') else: print('No')