#include <bits/stdc++.h>
using namespace std;
int main() {
  int a1, a2, a3, b1, b2, b3;
  cin >> a1 >> b1 >> a2 >> b2 >> a3 >> b3;
  bool ok = false;
  for (int i = 0; i < 4; ++i) {
    for (int j = 0; j < 4; ++j) {
      for (int k = 0; k < 4; ++k) {
        if (a1 >= a2 + a3 && max(b2, b3) <= b1 ||
            b1 >= b2 + b3 && max(a2, a3) <= a1) {
          ok = true;
        }
        swap(a3, b3);
      }
      swap(a2, b2);
    }
    swap(a1, b1);
  }
  if (ok) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
