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