#include <bits/stdc++.h>
using namespace std;
const long long N = 1e3 + 10;
const long double EPS = 1e-13;
const long long INF = 2 * 1e9 + 1;
const long long MAX = 1e9;
struct pt {
  int x, y;
};
pt a[3];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie();
  srand(time(NULL));
  for (int i = 0; i < 3; i++) cin >> a[i].x >> a[i].y;
  for (int i = 0; i < 1000; i++) {
    int t = rand() % 2;
    if (t % 2) swap(a[1].x, a[1].y);
    t = rand() % 2;
    if (t % 2) swap(a[2].x, a[2].y);
    if (a[1].x + a[2].x <= a[0].x && max(a[1].y, a[2].y) <= a[0].y ||
        a[1].y + a[2].y <= a[0].y && max(a[1].x, a[2].x) <= a[0].x) {
      cout << "YES";
      return 0;
    }
  }
  cout << "NO";
}
