#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int arr1[2];
  int arr2[2];
  int arr3[2];
  cin >> arr1[0] >> arr1[1] >> arr2[0] >> arr2[1] >> arr3[0] >> arr3[1];
  for (int i = 0; i < 2; ++i) {
    for (int j = 0; j < 2; ++j) {
      for (int k = 0; k < 2; ++k) {
        if (arr1[i] >= arr2[j] + arr3[k]) {
          if (arr1[!i] >= max(arr2[!j], arr3[!k])) {
            cout << "YES";
            return 0;
          }
        }
      }
    }
  }
  cout << "NO";
}
