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