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