#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int a1, a2, a3, b1, b2, b3;
  cin >> a1 >> b1;
  cin >> a2 >> b2;
  cin >> a3 >> b3;
  int vertical, horizontal;
  vertical = (a2 > a3) ? a2 : a3;
  horizontal = b2 + b3;
  if (vertical <= a1 && horizontal <= b1 ||
      vertical <= b1 && horizontal <= a1) {
    cout << "YES\n";
    return 0;
  }
  vertical = (a2 > b3) ? a2 : b3;
  horizontal = a3 + b2;
  if (vertical <= a1 && horizontal <= b1 ||
      vertical <= b1 && horizontal <= a1) {
    cout << "YES\n";
    return 0;
  }
  vertical = (b2 > a3) ? b2 : a3;
  horizontal = a2 + b3;
  if (vertical <= a1 && horizontal <= b1 ||
      vertical <= b1 && horizontal <= a1) {
    cout << "YES\n";
    return 0;
  }
  vertical = (b2 > b3) ? b2 : b3;
  horizontal = a2 + a3;
  if (vertical <= a1 && horizontal <= b1 ||
      vertical <= b1 && horizontal <= a1) {
    cout << "YES\n";
    return 0;
  }
  cout << "NO\n";
  return 0;
}
