#include <bits/stdc++.h>
using namespace std;
int a1, a2, a3, b1, b2, b3;
int main() {
  cin >> a1 >> b1;
  cin >> a2 >> b2;
  cin >> a3 >> b3;
  if ((a1 >= a2 + a3) and (b1 >= max(b2, b3)) or
      (a1 >= b2 + b3) and (b1 >= max(a2, a3)) or
      (a1 >= a2 + b3) and (b1 >= max(a3, b2)) or
      (a1 >= a3 + b2) and (b1 >= max(a2, b3)) or
      (b1 >= a2 + a3) and (a1 >= max(b2, b3)) or
      (b1 >= b2 + b3) and (a1 >= max(a2, a3)) or
      (b1 >= b2 + a3) and (a1 >= max(b3, a2)) or
      (b1 >= a2 + b3) and (a1 >= max(a3, b2)))
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
