#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, n1, m1, n2, m2;
  cin >> n >> m >> n1 >> m1 >> n2 >> m2;
  if (n1 + n2 <= n && m >= max(m1, m2)) {
    cout << "YES" << endl;
    return 0;
  }
  if (n >= max(n1, n2) && m1 + m2 <= m) {
    cout << "YES" << endl;
    return 0;
  }
  swap(n1, m1);
  if (n1 + n2 <= n && m >= max(m1, m2)) {
    cout << "YES" << endl;
    return 0;
  }
  if (n >= max(n1, n2) && m1 + m2 <= m) {
    cout << "YES" << endl;
    return 0;
  }
  swap(n1, m1);
  swap(n2, m2);
  if (n1 + n2 <= n && m >= max(m1, m2)) {
    cout << "YES" << endl;
    return 0;
  }
  if (n >= max(n1, n2) && m1 + m2 <= m) {
    cout << "YES" << endl;
    return 0;
  }
  swap(n1, m1);
  if (n1 + n2 <= n && m >= max(m1, m2)) {
    cout << "YES" << endl;
    return 0;
  }
  if (n >= max(n1, n2) && m1 + m2 <= m) {
    cout << "YES" << endl;
    return 0;
  }
  cout << "NO" << endl;
  return 0;
}
