#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 || abs(n_i - z_i) + abs(n_j - z_j) == 3 && (z_i == 1 && z_j == 1 || z_i == 1 && z_j == W || z_i == H && z_j == 1 || z_i == H && z_j == W) && n_i != z_i && n_j != z_j) cout << "Yes\n"; else cout << "No\n"; return 0; }