#include <bits/stdc++.h>
using namespace std;
double PI = 3.1415926536;
int dX[] = {1, -1, 0, 0};
int dY[] = {0, 0, 1, -1};
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int x[3], y[3];
  for (int i = (0); i < (3); i++) cin >> x[i] >> y[i];
  if ((x[1] + x[2] <= x[0] & max(y[1], y[2]) <= y[0]) ||
      (y[1] + y[2] <= y[0] & max(x[1], x[2]) <= x[0]) ||
      (x[1] + x[2] <= y[0] & max(y[1], y[2]) <= x[0]) ||
      (y[1] + y[2] <= x[0] & max(x[1], x[2]) <= y[0]) ||
      (x[1] + y[2] <= x[0] & max(y[1], x[2]) <= y[0]) ||
      (x[1] + y[2] <= y[0] & max(y[1], x[2]) <= x[0]) ||
      (y[1] + x[2] <= x[0] & max(x[1], y[2]) <= y[0]) ||
      (y[1] + x[2] <= y[0] & max(x[1], y[2]) <= x[0]))
    cout << "YES";
  else
    cout << "NO";
}
