#include <bits/stdc++.h>
using namespace std;
int abc(int a1, int b1, int a2, int b2) {
  int ans = 0;
  if (a1 >= a2 && b1 >= b2) ans = 1;
  if (a1 >= b2 && b1 >= a2) ans = 1;
  return ans;
}
int main() {
  int a[4], b[4], ans = 0;
  for (int i = 0; i < 3; i++) cin >> a[i] >> b[i];
  int x = a[0] - a[1], y = b[0] - b[1];
  if (x >= 0 && y >= 0) {
    if (abc(x, b[0], a[2], b[2])) ans = 1;
    if (abc(a[0], y, a[2], b[2])) ans = 1;
  }
  x = a[0] - b[1], y = b[0] - a[1];
  if (x >= 0 && y >= 0) {
    if (abc(x, b[0], a[2], b[2])) ans = 1;
    if (abc(a[0], y, a[2], b[2])) ans = 1;
  }
  if (ans == 1)
    cout << "YES";
  else
    cout << "NO";
}
