import math
a = int(input())

b = math.floor(a**(1/3))

if b**3 == a or (b+1)**3==a:
    print("Yes")
else:
    print("No")