#include<iostream>
#include<algorithm>
using namespace std;

bool ff(double y1,double x1,double a1,double b1,double y2,double x2,double a2,double b2){
  int ly = max(y1,y2),ry=min(y1+a1-1,y2+a2-1);
  int lx = max(x1,x2),rx=min(x1+b1-1,x2+b2-1);
  if (lx > rx || ly > ry)return 0;
  return true;
}

main(){
  double a,b,c,d,e,f,g,h;
  while(cin>>a>>b>>c>>d>>e>>f>>g>>h){
    if (ff(
			a,b,c-a,d-b,
			e,f,g-e,h-f
			)
	)
      cout <<"YES" << endl;
    else cout <<"NO"<<endl;
  }
}