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