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