#include <bits/stdc++.h>
using namespace std;
long long int x[1000007], y[1000007], z[1000007], n;
string s, S;
int main() {
  long long int a1, b1, p1, q1, a, b,
      c = 0, d, diff, e, f, g, i, j, k, l, m, in, mod, loc, p, q, r, u, val, w,
      t, tc, sz, lo, hi, mid, mn = 2134567891, mx = 0, sum = 0, ans = 0;
  cin >> a >> b >> p >> q >> p1 >> q1;
  if ((q + q1 <= b && p <= a && p1 <= a) || (q + q1 <= a && p <= b && p1 <= b))
    cout << "YES\n";
  else if ((p + q1 <= b && q <= a && p1 <= a) ||
           (p + q1 <= a && q <= b && p1 <= b))
    cout << "YES\n";
  else if ((p + p1 <= b && q <= a && q1 <= a) ||
           (p + p1 <= a && q <= b && q1 <= b))
    cout << "YES\n";
  else if ((q + p1 <= b && p <= a && q1 <= a) ||
           (q + p1 <= a && p <= b && q1 <= b))
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
