#include using namespace std; int main(){ int P,Q,R; cin >> P >> Q >> R; if(2*Q==P+R){ cout << "Yes" << endl; } else { cout << "No" << endl; } }