P, Q, R = map(int, input().split()) if P + R == 2 * Q: print("Yes") else: print("No")