Rectangles Online (Easy)
Vasya has plotted N distinct points on a plane, each with integer coordinates.
He now needs to efficiently determine how many of these points fall within a specified rectangle, where the rectangle's sides are parallel to the coordinate axes.
Input
The first line provides the number of points, N (1 ≤ N ≤ 100). The following N lines list the coordinates of these points as x_i y_i. The subsequent line indicates the number of queries, M (1 ≤ M ≤ 100). Each of the next M lines describes a query in the format x_1, y_1, x_2, y_2 (0 ≤ x_1 ≤ x_2 ≤ 10^9, 0 ≤ y_1 ≤ y_2 ≤ 10^9). For each query, perform the following tasks:
Determine the number of points that lie within the specified rectangle, including its boundaries.
Remove all points that have been counted.
Output
For each query, output the total number of points counted.