#include <bits/stdc++.h>
using namespace std;
int n, m, a1, a2, b1, b2;
void check() {
  if ((a1 + a2 <= n && max(b1, b2) <= m) ||
      (b1 + b2 <= m && max(a1, a2) <= n)) {
    printf("YES");
    exit(0);
  }
}
int main() {
  scanf("%d %d %d %d %d %d", &n, &m, &a1, &b1, &a2, &b2);
  check();
  swap(a1, b1);
  check();
  swap(a1, b1);
  swap(a2, b2);
  check();
  swap(a1, b1);
  check();
  printf("NO");
  return 0;
}
