#include <bits/stdc++.h>
using ll = long long;
using ld = long double;
using namespace std;
const ll inf = 2e18;
const ll mod = 1e9 + 7;
const ll N = 2e5 + 5;
int a1, b1, a2, b2, a3, b3;
void code() {
  cin >> a1 >> b1 >> a2 >> b2 >> a3 >> b3;
  if (a1 > b1) swap(a1, b1);
  if (a2 > b2) swap(a2, b2);
  if (a3 > b3) swap(a3, b3);
  for (int i : {a2, b2}) {
    for (int j : {a3, b3}) {
      int k = a2 + b2 - i, l = a3 + b3 - j;
      if (i + j <= a1 and max(k, l) <= b1) {
        cout << "YES\n";
        return;
      }
      if (i + j <= b1 and max(k, l) <= a1) {
        cout << "YES\n";
        return;
      }
    }
  }
  cout << "NO\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int t = 1;
  while (t-- > 0) {
    code();
  }
}
