#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  while (scanf("%d%d", &a, &b) != EOF) {
    int a1, b1, a2, b2;
    scanf("%d%d%d%d", &a1, &b1, &a2, &b2);
    if (a < b) swap(a, b);
    if (a1 < b1) swap(a1, b1);
    if (a2 < b2) swap(a2, b2);
    if (a < a1 || a < a2) {
      printf("NO\n");
    } else {
      int c = a - a1, d = b - b1, e = a - b1, t;
      if (c < b) {
        t = b;
        swap(c, t);
      }
      if (d < 0)
        printf("NO\n");
      else if ((a2 <= c && b2 <= t) || (a2 <= a && b2 <= d))
        printf("YES\n");
      else if (a2 <= b && b2 <= e)
        printf("YES\n");
      else
        printf("NO\n");
    }
  }
  return 0;
}
