N = input() a, b, c = [int(s) for s in N] print("Yes" if a + c == b else "No")