#include <iostream>
#include <cmath>
using namespace std;
double real(const char* msg) {
cout << msg;
double value;
cin >> value;
cin.ignore(cin.rdbuf()->in_avail());
return value;
}
double radius(const double x, const double y) {
return sqrt(x * x + y * y);
}
int main() {
const auto x = real("x: ");
const auto y = real("y: ");
const auto m = (x >= 0 && y >= 0 && radius(x, y) <= 4)
|| (y <= 0 && y >= -4 && x >= -2 && x <= 4);
cout << boolalpha << m << '\n';
system("pause > nul");
}