N = input() a, b, c = int(N[0]), int(N[1]), int(N[2]) if a + c == b: print("Yes.") else: print("No.")