#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, e, f;
  cin >> a >> b >> c >> d >> e >> f;
  if ((a >= c + e && b >= max(d, f)) || (a >= c + f && b >= max(d, e)) ||
      (a >= d + e && b >= max(c, f)) || (a >= d + f && b >= max(c, e)) ||
      (b >= c + e && a >= max(d, f)) || (b >= c + f && a >= max(d, e)) ||
      (b >= d + e && a >= max(c, f)) || (b >= d + f && a >= max(c, e)))
    cout << "YES";
  else
    cout << "NO";
}
