#include <bits/stdc++.h>
using namespace std;
int a1, b1, a2, b2, a3, b3;
bool good(int x1, int y1, int x2, int y2) { return (x1 <= x2 && y1 <= y2); }
int f(int A, int B, int C, int D) {
  if (good(A + C, max(B, D), a3, b3) || good(max(A, C), B + D, a3, b3))
    return true;
  return false;
}
int main() {
  cin >> a3 >> b3 >> a1 >> b1 >> a2 >> b2;
  if (f(a1, b1, a2, b2) || f(b1, a1, a2, b2) || f(a1, b1, b2, a2) ||
      f(b1, a1, b2, a2)) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
