n = int(input()) p = pow(10, 6) for i in range(1, p+1): if i**3 == n: print(("Yes")) break else: print("No")