#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[2], b[2], c[2], e[2], d[2], f[2], g[2];
  cin >> a[0] >> a[1];
  cin >> b[0] >> b[1];
  cin >> c[0] >> c[1];
  sort(a, a + 2);
  sort(b, b + 2);
  sort(c, c + 2);
  if (b[0] <= a[0] || b[1] <= a[1]) {
    d[0] = a[0] - b[0];
    d[1] = a[1];
    e[0] = a[0];
    e[1] = a[1] - b[0];
  }
  sort(e, e + 2);
  sort(d, d + 2);
  if ((b[0] * b[1] + c[0] * c[1] > a[1] * a[0]))
    cout << "NO" << endl;
  else if (b[1] > a[1])
    cout << "NO" << endl;
  else if ((c[0] <= e[0] && c[1] <= e[1]) || (c[0] <= d[0] && c[1] <= d[1]))
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
