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