using namespace std;
int main(){
	double a[8]; bool f;
	while(1){
		for(int i=0;i<8;i++)f=cin>>a[i];
		if(!f)break;
		double cx,cy,w,h,x,y;
		cx=a[0]+a[2],cy=a[1]+a[3];
		x=a[4]+a[6],y=a[5]+a[7];
		w=a[2]-a[0]+a[6]-a[4],h=a[3]-a[1]+a[7]-a[5];
		cout<<(cx-w<=x&&x<=cx+w&&cy-h<=y&&y<=cy+h?"YES":"NO")<<endl;
	}
	return 0;
}