#include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int h, w, a, b, c, d; cin >> h >> w >> a >> b >> c >> d; if ((a + b) % 2 == (c + d) % 2) cout << "No" << '\n'; else cout << "Yes" << '\n'; return 0; }