#include <iostream>
using namespace std;
int main () {
double x, y, k, m, n;
int x1=2, y1=5, x2=5, y2=0, x3=2, y3=-4; //координаты вершин треугольника
cin >> x >> y; //координаты произвольной точки
k= (x1 - x) * (y2 - y1) - (x2 - x1) * (y1 - y);
m= (x2 - x) * (y3 - y2) - (x3 - x2) * (y2 - y);
n= (x3 - x) * (y1 - y3) - (x1 - x3) * (y3 - y);
cout << ((k>=0 && m>=0 && n>=0) || (k<=0 && m<=0 && n<=0)? "Принадлежит": "Не принадлежит");
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogCmludCBtYWluICgpIHsKICAgIGRvdWJsZSB4LCB5LCBrLCBtLCBuOwogICAgaW50IHgxPTIsIHkxPTUsIHgyPTUsIHkyPTAsIHgzPTIsIHkzPS00OyAvL9C60L7QvtGA0LTQuNC90LDRgtGLINCy0LXRgNGI0LjQvSDRgtGA0LXRg9Cz0L7Qu9GM0L3QuNC60LAKICAgIGNpbiA+PiB4ID4+IHk7IC8v0LrQvtC+0YDQtNC40L3QsNGC0Ysg0L/RgNC+0LjQt9Cy0L7Qu9GM0L3QvtC5INGC0L7Rh9C60LgKICAgIGs9ICh4MSAtIHgpICogKHkyIC0geTEpIC0gKHgyIC0geDEpICogKHkxIC0geSk7CiAgICBtPSAoeDIgLSB4KSAqICh5MyAtIHkyKSAtICh4MyAtIHgyKSAqICh5MiAtIHkpOwogICAgbj0gKHgzIC0geCkgKiAoeTEgLSB5MykgLSAoeDEgLSB4MykgKiAoeTMgLSB5KTsKCWNvdXQgPDwgKChrPj0wICYmIG0+PTAgJiYgbj49MCkgfHwgKGs8PTAgJiYgbTw9MCAmJiBuPD0wKT8gItCf0YDQuNC90LDQtNC70LXQttC40YIiOiAi0J3QtSDQv9GA0LjQvdCw0LTQu9C10LbQuNGCIik7CglyZXR1cm4gMDsKfQ==