n = int(input()) if (round(n ** (1/3) , 3)).is_integer(): print("Yes") else: print("No")