import numpy n = int(input()) s = int(n ** (1/3)) if s ** 3 == n: print("Yes") elif (s+1) ** 3 == n: print("Yes") else: print("No")