#include <bits/stdc++.h>
using namespace std;
const long long MX5 = 2 * 1e5 + 3;
const long long MX6 = 2 * 1e6 + 3;
const long long INF = 8e18;
const long long MOD = 1e9 + 7;
const long long MOD2 = 998244353;
long long power(long long a, long long b, long long md) {
  return (!b ? 1
             : (b & 1 ? a * power(a * a % md, b / 2, md) % md
                      : power(a * a % md, b / 2, md) % md));
}
long long bmm(long long a, long long b) {
  return (a % b == 0 ? b : bmm(b, a % b));
}
long long A[MX5];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long a1, b1, a2, b2, a3, b3;
  cin >> a1 >> b1 >> a2 >> b2 >> a3 >> b3;
  if (a2 + a3 <= a1 && max(b2, b3) <= b1) {
    cout << "YES";
  } else if (a2 + a3 <= b1 && max(b2, b3) <= a1) {
    cout << "YES";
  } else if (a2 + b3 <= a1 && max(b2, a3) <= b1) {
    cout << "YES";
  } else if (a2 + b3 <= b1 && max(b2, a3) <= a1) {
    cout << "YES";
  } else if (b2 + a3 <= a1 && max(a2, b3) <= b1) {
    cout << "YES";
  } else if (b2 + a3 <= b1 && max(a2, b3) <= a1) {
    cout << "YES";
  } else if (b2 + b3 <= a1 && max(a2, a3) <= b1) {
    cout << "YES";
  } else if (b2 + b3 <= b1 && max(a2, a3) <= a1) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
