#include <bits/stdc++.h>
using namespace std;
pair<int, int> pic[3];
void turn(int i) {
  if (pic[i].first <= pic[0].second && pic[i].second <= pic[0].first ||
      i == 0) {
    int buf;
    buf = pic[i].first;
    pic[i].first = pic[i].second;
    pic[i].second = buf;
  }
}
int main() {
  bool answ = false;
  for (int i = 0; i < 3; i++) cin >> pic[i].first >> pic[i].second;
  for (int i = 0; i < 3; i++)
    if (pic[i].first > pic[i].second) turn(i);
  if (pic[0].first < pic[1].first || pic[0].first < pic[2].first ||
      pic[0].second < pic[1].second || pic[0].second < pic[2].second) {
    cout << "NO";
    return 0;
  }
  for (int i = 0; i < 2; i++) {
    for (int j = 0; j < 2; j++) {
      if ((pic[1].first <= (pic[0].first - pic[2].first)) ||
          (pic[1].second <= (pic[0].second - pic[2].second)))
        answ = true;
      turn(2);
    }
    turn(1);
  }
  if (answ)
    cout << "YES";
  else
    cout << "NO";
}
