#include <bits/stdc++.h>
using namespace std;
long long N;
long long M;
long long Q;
long long T;
double t1, t2, k;
vector<long long> vl;
vector<long long> alt;
vector<vector<long long> > DP;
string str;
int main() {
  long long wix, wiy, wfx, wfy;
  long long bix, biy, bfx, bfy;
  long long aix, aiy, afx, afy;
  cin >> wix >> wiy >> wfx >> wfy >> bix >> biy >> bfx >> bfy >> aix >> aiy >>
      afx >> afy;
  bool se = false;
  if (bix <= wix && biy <= wiy && bfx >= wfx && bfy >= wfy) se = true;
  if (aix <= wix && aiy <= wiy && afx >= wfx && afy >= wfy) se = true;
  if (bix <= wix && biy <= wiy && bfy >= wfy) {
    if (aix <= bfx && aiy <= wiy && afx >= wfx && afy >= wfy) se = true;
  }
  if (bix <= wix && biy <= wiy && bfx >= wfx) {
    if (aix <= wix && aiy <= bfy && afx >= wfx && afy >= wfy) se = true;
  }
  if (bfx >= wfx && bfy >= wfy && bix <= wix) {
    if (aix <= wix && aiy <= wiy && afx >= wfx && afy >= biy) se = true;
  }
  if (bfx >= wfx && bfy >= wfy && biy <= wiy) {
    if (aix <= wix && aiy <= wiy && afx >= bix && afy >= wfy) se = true;
  }
  if (se)
    cout << "NO";
  else
    cout << "YES";
}
