#include <stdio.h>

struct point { double x, y; };

// Читать координаты точки
struct point get() 
{
	struct point a;
	scanf("%lf%lf", &a.x, &a.y); // читаем координаты точки
	return a;
}

// Вычисляет положение точки D(xd,yd) относительно прямой AB
double g(struct point a, struct point b, struct point d) 
{
	return (d.x - a.x) * (b.y - a.y) - (d.y - a.y) * (b.x - a.x);
}

// Лежат ли точки C и D с одной строны прямой (AB)?
bool f(struct point a, struct point b, struct point c, struct point d) 
{
	return g(a, b, c) * g(a, b, d) >= 0;
}

int main() {
	struct point a = get(), b = get(), c = get(), d = get();
	printf(	f(a,b,c,d) && f(b,c,a,d) && f(c,a,b,d) ? "yes" : "no");
	return 0;
}