#include <bits/stdc++.h>

using std::cin;
using std::cout;

int main() {
	int h, w;
	cin >> h >> w;
	
	int ni, nj;
	cin >> ni >> nj;
	int zi, zj;
	cin >> zi >> zj;
	
	int d = abs(ni - zi) + abs(nj - zj);
	if (d % 2 == 1) puts("Yes");
	else puts("No");
	
	return 0;
}