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