#include <bits/stdc++.h>
using namespace std;
const long long MOD = 998244353;
const long long N = 1e6 + 2;
long long a[N];
void solve() {
  long long x, y, a, b, p, q;
  cin >> x >> y >> a >> b >> p >> q;
  long long f = 0;
  if (a + p <= x && max(b, q) <= y)
    f = 1;
  else if (a + q <= x && max(b, p) <= y)
    f = 1;
  else if (b + p <= x && max(a, q) <= y)
    f = 1;
  else if (b + q <= x && max(a, p) <= y)
    f = 1;
  else if (a + p <= y && max(b, q) <= x)
    f = 1;
  else if (a + q <= y && max(b, p) <= x)
    f = 1;
  else if (b + p <= y && max(a, q) <= x)
    f = 1;
  else if (b + q <= y && max(a, p) <= x)
    f = 1;
  if (f)
    cout << "YES\n";
  else
    cout << "NO\n";
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  t = 1;
  while (t--) {
    solve();
  }
}
