#include <iostream>
using namespace std;
int main() {
double x1, x2, x3, y1, y2, y3; //
double x=0, y=0;
cin>> x1 >> y1;
cin>> x2 >> y2;
cin>> x3 >> y3;
if((y2-y1)*(x3-x1)-(y3-y1)*(x2-x1)==0){
cout<<"Жаль вас расстраивать, но это не треугольник."<<endl;
}
else{
double A, B, C, O1, O2, O3;
A=(y3-y2)*(x1-x2)-(y1-y2)*(x3-x2);
B=(y3-y1)*(x2-x1)-(y2-y1)*(x3-x1);
C=(y2-y1)*(x3-x1)-(y3-y1)*(x2-x1);
O1=(y3-y2)*(x-x2)-(y-y2)*(x3-x2);
O2=(y3-y1)*(x-x1)-(y-y1)*(x3-x1);
O3=(y2-y1)*(x-x1)-(y-y1)*(x2-x1);
if((O1*A>=0)&&(O2*B>=0)&&(O3*C>=0)){
cout<<"Точка принадлежит треугольнику"<<endl;
}
else{
cout<<"Точка не принадлежит треугольнику"<<endl;
}
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cglkb3VibGUgeDEsIHgyLCB4MywgeTEsIHkyLCB5MzsgLy8KCWRvdWJsZSB4PTAsIHk9MDsKCWNpbj4+IHgxID4+IHkxOwoJY2luPj4geDIgPj4geTI7CgljaW4+PiB4MyA+PiB5MzsKCWlmKCh5Mi15MSkqKHgzLXgxKS0oeTMteTEpKih4Mi14MSk9PTApewoJCWNvdXQ8PCLQltCw0LvRjCDQstCw0YEg0YDQsNGB0YHRgtGA0LDQuNCy0LDRgtGMLCDQvdC+INGN0YLQviDQvdC1INGC0YDQtdGD0LPQvtC70YzQvdC40LouIjw8ZW5kbDsKCX0KCWVsc2V7CgkJZG91YmxlIEEsIEIsIEMsIE8xLCBPMiwgTzM7CgkJQT0oeTMteTIpKih4MS14MiktKHkxLXkyKSooeDMteDIpOwoJCUI9KHkzLXkxKSooeDIteDEpLSh5Mi15MSkqKHgzLXgxKTsKCQlDPSh5Mi15MSkqKHgzLXgxKS0oeTMteTEpKih4Mi14MSk7CgkJTzE9KHkzLXkyKSooeC14MiktKHkteTIpKih4My14Mik7CgkJTzI9KHkzLXkxKSooeC14MSktKHkteTEpKih4My14MSk7CgkJTzM9KHkyLXkxKSooeC14MSktKHkteTEpKih4Mi14MSk7CgkJaWYoKE8xKkE+PTApJiYoTzIqQj49MCkmJihPMypDPj0wKSl7CgkJCWNvdXQ8PCLQotC+0YfQutCwINC/0YDQuNC90LDQtNC70LXQttC40YIg0YLRgNC10YPQs9C+0LvRjNC90LjQutGDIjw8ZW5kbDsKCQl9CgkJZWxzZXsKCQkJY291dDw8ItCi0L7Rh9C60LAg0L3QtSDQv9GA0LjQvdCw0LTQu9C10LbQuNGCINGC0YDQtdGD0LPQvtC70YzQvdC40LrRgyI8PGVuZGw7CgkJfQoJfQoJcmV0dXJuIDA7Cn0=