#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cout << fixed;
  cout.precision(10);
  int x, y, a, b, c, d;
  cin >> x >> y >> a >> b >> c >> d;
  if (a + c <= x and max(b, d) <= y) {
    cout << "YES\n";
  } else if (a + c <= y and max(b, d) <= x) {
    cout << "YES\n";
  } else if (a + d <= x and max(b, c) <= y) {
    cout << "YES\n";
  } else if (a + d <= y and max(b, c) <= x) {
    cout << "YES\n";
  } else if (b + c <= x and max(a, d) <= y) {
    cout << "YES\n";
  } else if (b + c <= y and max(a, d) <= x) {
    cout << "YES\n";
  } else if (b + d <= x and max(a, c) <= y) {
    cout << "YES\n";
  } else if (b + d <= y and max(a, c) <= x) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
  return 0;
}
