n = int(input()) if n == (int(n**(1/3))**3) or n == (int(n**(1/3)+1)**3): print("Yes") else: print("No")