#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  while (scanf("%d %d", &n, &m) != EOF) {
    int x, y, a, b;
    int f = 0;
    scanf("%d%d%d%d", &x, &y, &a, &b);
    if (y + b <= m) {
      if (max(x, a) <= n) f = 1;
    }
    if (y + b <= n) {
      if (max(x, a) <= m) f = 1;
    }
    if (x + a <= n) {
      if (max(y, b) <= m) f = 1;
    }
    if (x + a <= m) {
      if (max(y, b) <= n) f = 1;
    }
    if (y + a <= m) {
      if (max(x, b) <= n) f = 1;
    }
    if (y + a <= n) {
      if (max(x, b) <= m) f = 1;
    }
    if (x + b <= n) {
      if (max(y, a) <= m) f = 1;
    }
    if (x + b <= m) {
      if (max(y, a) <= n) f = 1;
    }
    if (f)
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
