#include <bits/stdc++.h>
using namespace std;
const int inf = 1 << 30;
const long double eps = 1e-9;
int a, b;
void check(int a1, int b1, int a2, int b2) {
  if ((max(a1, a2) <= a && b1 + b2 <= b) ||
      (max(b1, b2) <= b && a1 + a2 <= a)) {
    cout << "YES";
    exit(0);
  }
}
int main() {
  int a1, a2, b1, b2;
  cin >> a >> b >> a1 >> b1 >> a2 >> b2;
  check(a1, b1, a2, b2);
  check(b1, a1, a2, b2);
  check(a1, b1, b2, a2);
  check(b1, a1, b2, a2);
  cout << "NO";
  return 0;
}
