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