#include <bits/stdc++.h>
using namespace std;
int a2, b2, a3, b3;
bool fit(int a1, int b1) {
  if ((a1 >= (a2 + a3) && b1 >= max(b2, b3)) ||
      (a1 >= (a2 + b3) && b1 >= max(b2, a3)) ||
      (b1 >= (b2 + b3) && a1 >= max(a2, a3)) ||
      (b1 >= (b2 + a3) && a1 >= max(a2, b3))) {
    return true;
  }
  return false;
}
int main() {
  int a1, b1;
  cin >> a1 >> b1 >> a2 >> b2 >> a3 >> b3;
  if (fit(a1, b1) || fit(b1, a1))
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
