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