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