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