N=int(input()) print("Yes" if N//100+(N%10)==((N//10)%10) else "No")