#include #include #include using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int32_t H, W, n_i, n_j, z_i, z_j; cin >> H >> W >> n_i >> n_j >> z_i >> z_j; if ((abs(n_i - z_i) + abs(n_j - z_j)) & 1) cout << "Yes\n"; else cout << "No\n"; return 0; }