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