#include <bits/stdc++.h>
using namespace std;
vector<pair<int, int> > ff, ss;
int main() {
  int a, b, x, y;
  cin >> a >> b;
  cin >> x >> y;
  ff.push_back({x, y});
  ff.push_back({y, x});
  cin >> x >> y;
  ss.push_back({x, y});
  ss.push_back({y, x});
  for (int i = 0; i < 2; i++)
    for (int j = 0; j < 2; j++) {
      cerr << "ff[i].F"
           << ": " << ff[i].first << " | "
           << "ff[i].S"
           << ": " << ff[i].second << " | "
           << "ss[j].F"
           << ": " << ss[j].first << " | "
           << "ss[j].S"
           << ": " << ss[j].second << endl;
      ;
      if ((ff[i].first + ss[j].first) <= a &&
          max(ff[i].second, ss[j].second) <= b) {
        cout << "YES\n";
        return 0;
      }
      swap(a, b);
      if ((ff[i].first + ss[j].first) <= a &&
          max(ff[i].second, ss[j].second) <= b) {
        cout << "YES\n";
        return 0;
      }
      swap(a, b);
    }
  cout << "NO\n";
  return 0;
}
