a,b,c=map(int,input().split()) if a+c==b+b: print("Yes") else: print("No")