#ifdef _DEBUG
#define xD cerr
#define xO <<
#define xx(x1) x1
#define xP endl
#else
#define xD
#define xO
#define xx(x1)
#define xP
#endif
#include "bits/stdc++.h"
using namespace std;
#include "atcoder/all"
using namespace atcoder;
using i64 = long long;
using uni64 = unsigned long long;
using i_i = pair<int, int>;
using i_b = pair<int, bool>;
using l_l = pair<i64, i64>;
using d_d = pair<double, double>;
#define rep(i, n) for(int i = 0; i < n; i++)
#define ifbit(n,k) ((n>>k)&1) //bool if kth bit on then true
constexpr int INF = 2147483647;
constexpr i64 I64F = 9223372036854775807;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int main() {
	int h, w; cin >> h >> w;
	int nx, ny; cin >> nx >> ny;
	int zx, zy; cin >> zx >> zy;
	cout << ((abs(nx - zx) + abs(ny - zy)) % 2 == 1 ? "Yes" : "No") << endl;
	
	return 0;
}