#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, e, f, t1, t2;
  int m, n;
  cin >> a >> b >> c >> d >> e >> f;
  if (c > max(a, b) || d > max(a, b) || e > max(a, b) || f > max(a, b) ||
      (min(c, d) > max(a, b)) || min(e, f) > max(a, b)) {
    cout << "NO" << endl;
    return 0;
  }
  if (c * d > a * b || e * f > a * b) {
    cout << "NO" << endl;
    return 0;
  } else {
    int x = max(a, b);
    int y = min(a, b);
    int u = max(c, d);
    int v = min(c, d);
    x = x - u;
    y = y - v;
    int q, w, t, r;
    q = x;
    w = min(a, b);
    t = y;
    r = max(a, b);
    if ((max(e, f) <= max(q, w) && min(e, f) <= min(q, w)) ||
        (max(e, f) <= max(t, r) && min(e, f) <= min(t, r))) {
      cout << "YES" << endl;
      return 0;
    }
    x = max(a, b);
    y = min(a, b);
    if (u <= y) {
      y = y - u;
      x = x - v;
      q = x;
      w = min(a, b);
      t = y;
      r = max(a, b);
      if ((max(e, f) <= max(q, w) && min(e, f) <= min(q, w)) ||
          (max(e, f) <= max(t, r) && min(e, f) <= min(t, r))) {
        cout << "YES" << endl;
        return 0;
      }
    }
    cout << "NO" << endl;
  }
}
