#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, c, d, x, y, flag;
  long long int w1, w2, w3, w4, h1, h2, h3, h4;
  cin >> x >> y;
  cin >> a >> b;
  cin >> c >> d;
  w1 = a + c;
  h1 = max(b, d);
  w2 = a + d;
  h2 = max(b, c);
  w3 = b + d;
  h3 = max(a, c);
  w4 = b + c;
  h4 = max(a, d);
  if (w1 <= x && h1 <= y || w1 <= y && h1 <= x)
    flag = 1;
  else if (w2 <= x && h2 <= y || w2 <= y && h2 <= x)
    flag = 1;
  else if (w3 <= x && h3 <= y || w3 <= y && h3 <= x)
    flag = 1;
  else if (w4 <= x && h4 <= y || w4 <= y && h4 <= x)
    flag = 1;
  else
    flag = 0;
  if (flag == 1)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
