#include <cmath>
#include <string>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
	int H, W, xa, ya, xb, yb;
	cin >> H >> W >> xa >> ya >> xb >> yb;
	if ((xa + ya) % 2 == (xb + yb) % 2) {
		cout << "No" << endl;
	}
	else if (H >= 4 && W >= 4) {
		cout << "No" << endl;
	}
	else {
		cout << "Yes" << endl;
	}
	return 0;
}