#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  int a1, a2, a3, b1, b2, b3;
  while (cin >> a1 >> b1 >> a2 >> b2 >> a3 >> b3) {
    string ans = "NO\n\n";
    int x[] = {a2 + a3, a2 + b3, b2 + b3, b2 + a3};
    int y[] = {max(b2, b3), max(b2, a3), max(a2, a3), max(a2, b3)};
    for (int i = 0; i < 4; i++)
      if (x[i] <= a1 && y[i] <= b1 || y[i] <= a1 && x[i] <= b1) ans = "YES\n\n";
    cout << ans;
  }
}
