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