You are given a set of points on a plane.
You need to handle two types of queries:
? x_1 y_1 x_2 y_2 — Determine how many points lie within the rectangle x_1\,..\,x_2 \times y_1\,..\,y_2. Points on the boundary and corners are included. It is guaranteed that x_1 \leq x_2, y_1 \leq y_2.
+ — Add the point \left(x + res \bmod 100,\ y + res \bmod 101\right) to the set, where is the result of the most recent ? query, and denotes the modulo operation.
The number of points is (1 \leq N \leq 50000). Next, points follow. The number of queries is (1 \leq Q \leq 100000). Next, queries follow. All coordinates are within the range to 10^9.
For each ? query, output a single integer — the number of points inside the specified rectangle.
Example 1