#include #define rep(i,n) for(int i=0;i<(int)n;++i) using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int x1,y1,x2,y2,x3; cin >> x1 >> y1 >> x2 >> y2 >> x3; if(abs(y1)==abs(y2)) cout << "Yes" << endl; else cout << "No" << endl; }