#include <bits/stdc++.h>
int main() {
  int a1 = 0, a2 = 0, a3 = 0, b1 = 0, b2 = 0, b3 = 0;
  int max(int a, int b);
  scanf("%d%d", &a1, &b1);
  scanf("%d%d", &a2, &b2);
  scanf("%d%d", &a3, &b3);
  int temp = 0, sum[5] = {0}, longl[5] = {0};
  sum[1] = a2 + a3;
  sum[2] = a2 + b3;
  sum[3] = a3 + b2;
  sum[4] = b3 + b2;
  longl[1] = max(b2, b3);
  longl[2] = max(a3, b2);
  longl[3] = max(a2, b3);
  longl[4] = max(a3, a2);
  int i = 0;
  for (i = 1; i < 5; i++) {
    if ((sum[i] <= a1 && longl[i] <= b1) || (sum[i] <= b1 && longl[i] <= a1)) {
      printf("YES\n");
      break;
    }
  }
  if (i == 5) {
    printf("NO\n");
  }
}
int max(int a, int b) {
  int shu = 0;
  shu = (a > b) ? a : b;
  return shu;
}
