#include using namespace std; using ll = long long; const ll MOD = 1000000007; using P = pair; #define rep(i, n) for(int i = 0; i < n; i++) #define all(x) (x).begin(),(x).end() int main(){ int h,w,n1,n2,z1,z2; cin >> h >> w >> n1 >> n2 >> z1 >> z2; //bool b = false; //if((z1==1 && z2==1) || (z1==h && z2==w)) b = true; int dist = abs(n1-z1) + abs(n2-z2); if(dist%2) cout << "Yes" << endl; else cout << "No" << endl; return 0; }