#include <bits/stdc++.h>
using namespace std;
int main() {
  {
    int a, b;
    int c, d, e, f;
    cin >> a >> b >> c >> d >> e >> f;
    int j, k, l, m;
    j = c + e;
    k = max(d, f);
    l = c + f;
    m = max(d, e);
    if ((j <= a && k <= b) || (j <= b && k <= a))
      cout << "YES\n";
    else if ((l <= a && m <= b) || (l <= b && m <= a))
      cout << "YES\n";
    else {
      j = d + f;
      k = max(c, e);
      l = d + e;
      m = max(c, f);
      if ((j <= a && k <= b) || (j <= b && k <= a))
        cout << "YES\n";
      else if ((l <= a && m <= b) || (l <= b && m <= a))
        cout << "YES\n";
      else
        cout << "NO\n";
    }
  }
}
