#include <bits/stdc++.h>
using namespace std;
int a, b, x, xx, y, yy;
bool good(int a, int b, int x, int y, int xx, int yy) {
  if (x <= a && xx <= a && y + yy <= b) return true;
  return false;
}
int main() {
  cin >> a >> b;
  cin >> x >> y;
  cin >> xx >> yy;
  if (good(a, b, x, y, xx, yy)) {
    cout << "YES" << endl;
    return 0;
  }
  if (good(a, b, x, y, yy, xx)) {
    cout << "YES" << endl;
    return 0;
  }
  if (good(a, b, y, x, xx, yy)) {
    cout << "YES" << endl;
    return 0;
  }
  if (good(a, b, y, x, yy, xx)) {
    cout << "YES" << endl;
    return 0;
  }
  if (good(b, a, x, y, xx, yy)) {
    cout << "YES" << endl;
    return 0;
  }
  if (good(b, a, x, y, yy, xx)) {
    cout << "YES" << endl;
    return 0;
  }
  if (good(b, a, y, x, xx, yy)) {
    cout << "YES" << endl;
    return 0;
  }
  if (good(b, a, y, x, yy, xx)) {
    cout << "YES" << endl;
    return 0;
  }
  cout << "NO";
  return 0;
}
