#include <iostream>
#include <math.h>
using namespace std;
int main() {
int i;
double a1, a2, b1, b2, c1, c2, x, y, f, g;
scanf("%lf %lf %lf %lf %lf %lf %lf %lf", &a1, &a2, &b1, &b2, &c1, &c2, &x, &y);
f = (y - a2)*(b1 - a1) - (x - a1)*(b2 - a2);
g = (c2 - a2)*(b1 - a1) - (c1 - a1)*(b2 - a2);
if (f*g > 0) { // Проверяем, лежат ли точки (x,y) и C по одну сторону от прямой AB
f = (y - a2)*(c1 - a1) - (x - a1)*(c2 - a2);
g = (b2 - a2)*(c1 - a1) - (b1 - a1)*(c2 - a2);
if (f*g > 0) { // Проверяем, лежат ли точки (x,y) и B по одну сторону от прямой AC
f = (y - b2)*(c1 - b1) - (x - b1)*(c2 - b2);
g = (a2 - b2)*(c1 - b1) - (a1 - b1)*(c2 - b2);
if (f*g > 0) { // Проверяем, лежат ли точки (x,y) и A по одну сторону от прямой BC
printf("Да \n");
}
else {
printf("Нет \n");
}
}
else {
printf("Нет \n");
}
}
else {
printf("Нет \n");
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWF0aC5oPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgaTsKCWRvdWJsZSBhMSwgYTIsIGIxLCBiMiwgYzEsIGMyLCB4LCB5LCBmLCBnOwoJc2NhbmYoIiVsZiAlbGYgJWxmICVsZiAlbGYgJWxmICVsZiAlbGYiLCAmYTEsICZhMiwgJmIxLCAmYjIsICZjMSwgJmMyLCAmeCwgJnkpOwoJZiA9ICh5IC0gYTIpKihiMSAtIGExKSAtICh4IC0gYTEpKihiMiAtIGEyKTsKCWcgPSAoYzIgLSBhMikqKGIxIC0gYTEpIC0gKGMxIC0gYTEpKihiMiAtIGEyKTsKCWlmIChmKmcgPiAwKSB7ICAvLyDQn9GA0L7QstC10YDRj9C10LwsINC70LXQttCw0YIg0LvQuCDRgtC+0YfQutC4ICh4LHkpINC4IEMg0L/QviDQv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