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