#include <bits/stdc++.h>
using namespace std;
int main() {
  int a1, b1, a2, b2, a3, b3;
  cin >> a1 >> b1 >> a2 >> b2 >> a3 >> b3;
  int l1 = min(a1, b1);
  int l2 = min(a2, b2);
  int l3 = min(a3, b3);
  int L1 = max(a1, b1);
  int L2 = max(a2, b2);
  int L3 = max(a3, b3);
  if (l2 + l3 <= l1 && max(L2, L3) <= L1)
    cout << "YES"
         << "\n";
  else if (l2 + l3 <= L1 && max(L2, L3) <= l1)
    cout << "YES"
         << "\n";
  else if (L2 + L3 <= l1 && max(l2, l3) <= L1)
    cout << "YES"
         << "\n";
  else if (L2 + L3 <= L1 && max(l2, l3) <= l1)
    cout << "YES"
         << "\n";
  else if (L2 + l3 <= L1 && max(l2, L3) <= l1)
    cout << "YES"
         << "\n";
  else if (l2 + L3 <= L1 && max(L2, l3) <= l1)
    cout << "YES"
         << "\n";
  else
    cout << "NO"
         << "\n";
  return 0;
}
