#include <bits/stdc++.h>
using namespace std;
long long a, b, a1, b1, a2, b2;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> a >> b >> a1 >> b1 >> a2 >> b2;
  if (a1 + a2 <= a && max(b1, b2) <= b) return cout << "YES", 0;
  if (a1 + b2 <= a && max(a2, b1) <= b) return cout << "YES", 0;
  if (b1 + a2 <= a && max(b2, a1) <= b) return cout << "YES", 0;
  if (b1 + b2 <= a && max(a1, a2) <= b) return cout << "YES", 0;
  if (a1 + a2 <= b && max(b1, b2) <= a) return cout << "YES", 0;
  if (a1 + b2 <= b && max(b1, a2) <= a) return cout << "YES", 0;
  if (b1 + a2 <= b && max(b2, a1) <= a) return cout << "YES", 0;
  if (b1 + b2 <= b && max(a1, a2) <= a) return cout << "YES", 0;
  cout << "NO";
}
