#include <bits/stdc++.h>
using namespace std;
int main() {
  int dimensions[3][2];
  for (int i = 0; i < 3; ++i)
    for (int j = 0; j < 2; ++j) cin >> dimensions[i][j];
  bool possible = false;
  for (int i = 0; i < 2; ++i) {
    for (int j = 0; j < 2; ++j) {
      for (int k = 0; k < 2; ++k) {
        if (dimensions[1][i] + dimensions[2][j] <= dimensions[0][k] &&
            max(dimensions[1][1 - i], dimensions[2][1 - j]) <=
                dimensions[0][1 - k]) {
          possible = true;
          break;
        }
      }
    }
  }
  if (possible)
    cout << "YES";
  else
    cout << "NO";
}
