#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int i, j, k;
  vector<vector<int> > mat(3, vector<int>(2));
  for (i = 0; i < 3; i++)
    for (j = 0; j < 2; j++) cin >> mat[i][j];
  bool isPossible = false;
  for (k = 0; k < 2; k++)
    for (i = 0; i < 2; i++)
      for (j = 0; j < 2; j++) {
        if (mat[1][i] + mat[2][j] <= mat[0][k] &&
            max(mat[1][1 - i], mat[2][1 - j]) <= mat[0][1 - k])
          isPossible = true;
      }
  if (isPossible)
    cout << "YES" << '\n';
  else
    cout << "NO" << '\n';
}
