p, q, r = map(int, input().split()) if 2 * q == p + r: print("Yes") else: print("No")