#include <cstdio>

using namespace std;

int main()
{
	double x1,y1,x2,y2,x3,y3,xp,yp;
	double max_x, min_x, max_y, min_y;
	
	while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf", &x1, &y1, &x2, &y2, &x3, &y3, &xp, &yp), x1 != EOF){
		max_x = min_x = x1;
		max_y = min_y = y1;
		
		if (max_x < x2) max_x = x2;
		if (max_x < x3) max_x = x3;
		if (min_x > x2) min_x = x2;
		if (min_x > x3) min_x = x3;
		if (max_y < y2) max_y = y2;
		if (max_y < y3) max_y = y3;
		if (min_y > y2) min_y = y2;
		if (min_y > y3) min_y = y3;
		
		if (min_x < xp && xp < max_x && min_y < yp && yp < max_y){
			printf("YES\n");
		}
		else printf("NO\n");
	}
}