#include <bits/stdc++.h>
using namespace std;
int main(){
  int H, W;
  cin >> H >> W;
  int ni, nj;
  cin >> ni >> nj;
  ni--;
  nj--;
  int zi, zj;
  cin >> zi >> zj;
  zi--;
  zj--;
  if ((abs(ni - zi) + abs(nj - zj)) % 2 == 1){
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}