#include <bits/stdc++.h>
using namespace std;
const long long N = 2e5 + 7;
const long long inf = 1e9 + 7;
const long long mod = 1e9 + 7;
struct Point {
  int x1, y1, x2, y2;
};
Point p[4];
Point intersect(Point a, Point b) {
  Point res;
  res.x1 = max(a.x1, b.x1);
  res.y1 = max(a.y1, b.y1);
  res.x2 = min(a.x2, b.x2);
  res.y2 = min(a.y2, b.y2);
  if (res.x2 <= res.x1 || res.y2 <= res.y1) {
    return Point();
  }
  return res;
}
long long s(Point a) { return (abs(a.x1 - a.x2) * 1ll * abs(a.y1 - a.y2)); }
int main() {
  ios_base::sync_with_stdio(false);
  for (int i = 1; i <= 3; i++) {
    cin >> p[i].x1 >> p[i].y1 >> p[i].x2 >> p[i].y2;
  }
  Point in12 = intersect(p[1], p[2]);
  Point in13 = intersect(p[1], p[3]);
  Point in4 = intersect(in12, in13);
  if (s(p[1]) > s(in12) + s(in13) - s(in4)) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
}
