#include <bits/stdc++.h>
using namespace std;
long long n, m, x, y, z, k, sol, sum, ans, l, r, xx, yy, a[1000000], b[1000000],
    ll, rr, rx, ry, lx, ly;
int main() {
  cin >> x >> y;
  cin >> l >> r;
  cin >> ll >> rr;
  yy = y, xx = x;
  if (x >= l && y >= r) {
    yy -= r;
    if (x >= ll && yy >= rr) {
      cout << "YES" << endl;
      return 0;
    }
    if (x >= rr && yy >= ll) {
      cout << "YES" << endl;
      return 0;
    }
    lx = x - l;
    ly = y;
    if (lx >= ll && ly >= rr) {
      cout << "YES" << endl;
      return 0;
    }
    if (ly >= ll && lx >= rr) {
      cout << "YES" << endl;
      return 0;
    }
  } else if (x >= r && y >= l) {
    yy -= l;
    if (x >= ll && yy >= rr) {
      cout << "YES" << endl;
      return 0;
    }
    if (x >= rr && yy >= ll) {
      cout << "YES" << endl;
      return 0;
    }
    lx = x - r;
    ly = y;
    if (lx >= ll && ly >= rr) {
      cout << "YES" << endl;
      return 0;
    }
    if (ly >= ll && lx >= rr) {
      cout << "YES" << endl;
      return 0;
    }
  }
  swap(x, y);
  yy = y, xx = x;
  if (x >= l && y >= r) {
    yy -= r;
    if (x >= ll && yy >= rr) {
      cout << "YES" << endl;
      return 0;
    }
    if (x >= rr && yy >= ll) {
      cout << "YES" << endl;
      return 0;
    }
    lx = x - l;
    ly = y;
    if (lx >= ll && ly >= rr) {
      cout << "YES" << endl;
      return 0;
    }
    if (ly >= ll && lx >= rr) {
      cout << "YES" << endl;
      return 0;
    }
  } else if (x >= r && y >= l) {
    yy -= l;
    if (x >= ll && yy >= rr) {
      cout << "YES" << endl;
      return 0;
    }
    if (x >= rr && yy >= ll) {
      cout << "YES" << endl;
      return 0;
    }
    lx = x - r;
    ly = y;
    if (lx >= ll && ly >= rr) {
      cout << "YES" << endl;
      return 0;
    }
    if (ly >= ll && lx >= rr) {
      cout << "YES" << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
