import math, sys n = int(input()) for i in range(10**6+1): if i**3==n: print('Yes') sys.exit() print('No')