#include <bits/stdc++.h>
const long long mod = 1000000007;
const int maxn = 100000;
using namespace std;
int main() {
  int a, b;
  scanf("%d", &a);
  scanf("%d", &b);
  int a1, b1;
  scanf("%d", &a1);
  scanf("%d", &b1);
  int a2, b2;
  scanf("%d", &a2);
  scanf("%d", &b2);
  if (a1 + b2 <= max(a, b)) {
    if (a1 + b2 <= min(a, b) && max(a2, b1) <= max(a, b))
      puts("YES"), exit(0);
    else if (max(a2, b1) <= min(a, b))
      puts("YES"), exit(0);
  }
  if (a1 + a2 <= max(a, b)) {
    if (a1 + a2 <= min(a, b) && max(b1, b2) <= max(a, b))
      puts("YES"), exit(0);
    else if (max(b1, b2) <= min(a, b))
      puts("YES"), exit(0);
  }
  if (b1 + a2 <= max(a, b)) {
    if (b1 + a2 <= min(a, b) && max(a1, b2) <= max(a, b))
      puts("YES"), exit(0);
    else if (max(a1, b2) <= min(a, b))
      puts("YES"), exit(0);
  }
  if (b1 + b2 <= max(a, b)) {
    if (b1 + b2 <= min(a, b) && max(a1, a2) <= max(a, b))
      puts("YES"), exit(0);
    else if (max(a1, a2) <= min(a, b))
      puts("YES"), exit(0);
  }
  puts("NO");
  return 0;
}
