#include <bits/stdc++.h>
using namespace std;
const int MX = 25;
int main(int argc, char *argv[]) {
  ios ::sync_with_stdio(false);
  cin.tie(NULL);
  int a1, b1, a2, b2, a3, b3;
  cin >> a1 >> b1 >> a2 >> b2 >> a3 >> b3;
  if (a1 >= a2 + a3 && b1 >= max(b2, b3))
    cout << "YES" << '\n';
  else if (a1 >= a2 + b3 && b1 >= max(b2, a3))
    cout << "YES" << '\n';
  else if (a1 >= b2 + a3 && b1 >= max(a2, b3))
    cout << "YES" << '\n';
  else if (a1 >= b2 + b3 && b1 >= max(a2, a3))
    cout << "YES" << '\n';
  else if (b1 >= a2 + a3 && a1 >= max(b2, b3))
    cout << "YES" << '\n';
  else if (b1 >= a2 + b3 && a1 >= max(b2, a3))
    cout << "YES" << '\n';
  else if (b1 >= b2 + a3 && a1 >= max(a2, b3))
    cout << "YES" << '\n';
  else if (b1 >= b2 + b3 && a1 >= max(a2, a3))
    cout << "YES" << '\n';
  else
    cout << "NO" << '\n';
  return 0;
}
