#include <bits/stdc++.h>
using namespace std;
int a[3], b[3];
void input() {
  for (int i = 0; i < 3; i++) scanf("%d %d", &a[i], &b[i]);
}
void solve() {
  input();
  int A[4], B[4];
  int re = 0;
  A[0] = a[1] + b[2];
  B[0] = max(a[2], b[1]);
  A[1] = max(a[1], b[2]);
  B[1] = a[2] + b[1];
  A[2] = a[1] + a[2];
  B[2] = max(b[1], b[2]);
  A[3] = max(a[1], a[2]);
  B[3] = b[1] + b[2];
  for (int i = 0; i < 4; i++) {
    if (A[i] <= a[0] && B[i] <= b[0]) re = 1;
    if (A[i] <= b[0] && B[i] <= a[0]) re = 1;
  }
  if (re)
    puts("YES");
  else
    puts("NO");
}
int main(void) {
  solve();
  return 0;
}
