a, b, c = map(int, input().split()) if b * 2 == a + c: print("Yes") else: print("No")