import sys input = sys.stdin.readline N=int(input()) a=N//100 b=N%100//10 c=N%10 if b==a+c: print("Yes") else: print("No")