#include <bits/stdc++.h>
using namespace std;
int a[5], b[5];
int main() {
  for (int i = 1; i <= 3; i++) scanf("%d%d", &a[i], &b[i]);
  if (a[2] + b[3] <= a[1] && max(b[2], a[3]) <= b[1])
    cout << "YES" << endl;
  else if (b[2] + a[3] <= b[1] && max(a[2], b[3]) <= a[1])
    cout << "YES" << endl;
  else if (max(a[2], a[3]) <= a[1] && b[2] + b[3] <= b[1])
    cout << "YES" << endl;
  else if (a[2] + a[3] <= a[1] && max(b[2], b[3]) <= b[1])
    cout << "YES" << endl;
  else if (a[2] + b[3] <= b[1] && max(a[3], b[2]) <= a[1])
    cout << "YES" << endl;
  else if (b[2] + a[3] <= a[1] && max(a[2], b[3]) <= b[1])
    cout << "YES" << endl;
  else if (a[2] + a[3] <= b[1] && max(b[2], b[3]) <= a[1])
    cout << "YES" << endl;
  else if (b[2] + b[3] <= a[1] && max(a[2], a[3]) <= b[1])
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
