#include #include #include using namespace std; struct Point { int x, y; Point() {} Point(int x, int y) : x(x), y(y) {} int distance(int x, int y) { double x2 = this->x - x; double y2 = this->y - y; return sqrt(x2*x2 + y2*y2); } }; int main() { int a, N, r1, r2, r3, r4, x, y; while(cin >> a >> r1 >> r2 >> r3 >> r4 >> N) { int total = 0, half = N / 2; Point A = Point(0, 0), B = Point(a, 0), C = Point(a, a), D = Point(0, a); for(int i = 0; i < N; i++) { cin >> x >> y; int d1 = A.distance(x, y), d2 = B.distance(x, y); int d3 = C.distance(x, y), d4 = D.distance(x, y); if(d1 < r1 && d2 < r2 && d3 < r3 && d4 < r4) total++; } if(total > half) cout << "The wireless coverage still stinks, but good enough for now." << endl; else cout << "St. Stephen needs new equipment." << endl; } return 0; }