#include <bits/stdc++.h>
using namespace std;
bool Judge(int a, int b, int x1, int y1, int x2, int y2) {
  if (a > b) swap(a, b);
  if (x1 + x2 <= a) {
    if (max(y1, y2) <= b) return 1;
  }
  if (x1 + x2 <= b) {
    if (max(y1, y2) <= a) return 1;
  }
  return 0;
}
int main() {
  int x0, y0, x1, y1, x2, y2;
  int flag = 0;
  scanf("%d%d%d%d%d%d", &x0, &y0, &x1, &y1, &x2, &y2);
  if (Judge(x0, y0, x1, y1, x2, y2)) flag = 1;
  if (Judge(x0, y0, y1, x1, x2, y2)) flag = 1;
  if (Judge(x0, y0, x1, y1, y2, x2)) flag = 1;
  if (Judge(x0, y0, y1, x1, y2, x2)) flag = 1;
  if (flag)
    printf("YES");
  else
    printf("NO");
  return 0;
}
