#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[3], b[3];
  for (int i = 0; i < 3; i++) cin >> a[i] >> b[i];
  bool flag = false;
  for (int i = 0; i < 2; i++) {
    for (int j = 0; j < 2; j++) {
      for (int p = 0; p < 2; p++) {
        if (max(a[1], a[2]) <= a[0] && b[1] + b[2] <= b[0]) flag = true;
        swap(a[0], b[0]);
      }
      swap(a[2], b[2]);
    }
    swap(a[1], b[1]);
  }
  if (flag)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
