#include <bits/stdc++.h>
using namespace std;
const int x = 1000001;
int main() {
  int a[3], b[3];
  for (int i = 0; i < 3; ++i) cin >> a[i] >> b[i];
  bool ok = 0;
  if (a[1] + a[2] <= a[0] && b[1] <= b[0] && b[2] <= b[0]) ok = 1;
  if (a[1] + b[2] <= a[0] && b[1] <= b[0] && a[2] <= b[0]) ok = 1;
  if (b[1] + a[2] <= a[0] && a[1] <= b[0] && b[2] <= b[0]) ok = 1;
  if (b[1] + b[2] <= a[0] && a[1] <= b[0] && a[2] <= b[0]) ok = 1;
  if (a[1] + a[2] <= b[0] && b[1] <= a[0] && b[2] <= a[0]) ok = 1;
  if (a[1] + b[2] <= b[0] && b[1] <= a[0] && a[2] <= a[0]) ok = 1;
  if (b[1] + a[2] <= b[0] && a[1] <= a[0] && b[2] <= a[0]) ok = 1;
  if (b[1] + b[2] <= b[0] && a[1] <= a[0] && a[2] <= a[0]) ok = 1;
  if (ok)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
