/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
static double f (double x, double x0, double x1, double y, double y0, double y1){
return (x - x0) * (y1 - y0) - (y - y0) * (x1 - x0);
}
{
double xa, ya, xb, yb, xc, yc, xd, yd,xk,yk;
xa = -0.5;
ya = 0;
xb = 0;
yb = 1;
xc = 0.5;
yc = 0;
xd = 0;
yd = -1;
Scanner in
= new Scanner
(System.
in); xk = in.nextDouble();
yk = in.nextDouble();
double l,m,q,w;
l = f(xk,xa,xb,yk,ya,yb);
m = f(xk,xb,xc,yk,yb,yc);
q = f(xk,xc,xd,yk,yc,yd);
w = f(xk,xd,xa,yk,yd,ya);
if ((l >= 0) && (m >= 0) && (q >= 0) && (w >= 0)){
System.
out.
printf("Принадлежит " ); }
else
System.
out.
printf("Не принадлежит " ); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXN0YXRpYyBkb3VibGUgZiAoZG91YmxlIHgsIGRvdWJsZSB4MCwgZG91YmxlIHgxLCBkb3VibGUgeSwgZG91YmxlIHkwLCBkb3VibGUgeTEpewoJCXJldHVybiAgKHggLSB4MCkgKiAoeTEgLSB5MCkgLSAoeSAtIHkwKSAqICh4MSAtIHgwKTsKCX0gCglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlkb3VibGUgeGEsIHlhLCB4YiwgeWIsIHhjLCB5YywgeGQsIHlkLHhr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