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