import math N = int(input()) N = N**(1/3) if N == math.floor(N) == math.ceil(N): print("Yes") else: print("No")