// 想定解 C++ #include using namespace std; int main() { int H, W; int ni, nj; int zi, zj; cin >> H >> W; cin >> ni >> nj; cin >> zi >> zj; if ((abs(ni - zi) + abs(nj - zj)) % 2 == 1) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }