#include <bits/stdc++.h>
using namespace std;
int shape[2][2];
int main() {
  int a, b;
  scanf("%d%d", &a, &b);
  for (int i = 0; i < 2; i++)
    for (int j = 0; j < 2; j++) scanf("%d", &shape[i][j]);
  int tag = 0;
  for (int i = 0; i < 2; i++)
    for (int j = 0; j < 2; j++) {
      if (shape[0][i] + shape[1][j] <= a) {
        if (shape[0][1 - i] <= b && shape[1][1 - j] <= b) tag = 1;
      }
      if (shape[0][i] + shape[1][j] <= b) {
        if (shape[0][1 - i] <= a && shape[1][1 - j] <= a) tag = 1;
      }
    }
  if (tag)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
