Problem

There are W white square tiles in the horizontal direction and H in the vertical direction, for a total of W x H tiles.

On the morning of day i, Taro has a tile that exists in a rectangular area with the axith tile from the left and the ayith tile from the top on the upper left, and the bxith tile from the left and the byith tile from the top on the lower right. Make sure it's all white. If all tiles are white, fill them all black. At other times, do nothing.

For each of the N days, print out how many tiles are filled in black at the end of the day's work.

Constraints

* 2 ≤ W ≤ 100000
* 2 ≤ H ≤ 100000
* 2 ≤ N ≤ 100000
* 1 ≤ axi ≤ bxi ≤ W (1 ≤ i ≤ N)
* 1 ≤ ayi ≤ byi ≤ H (1 ≤ i ≤ N)

Input

The input is given in the following format.


W H
N
ax1 ay1 bx1 by1
ax2 ay2 bx2 by2
...
axN ayN bxN byN


On the first line, two integers W and H are given, separated by blanks. The second line is given one integer N. Of the N lines from the 3rd line, the ith line is given four integers axi ayi bxi byi, which represent the rectangular area to be confirmed on the morning of the i day, separated by blanks.

Output

In each of the N days, output the number of tiles filled in black at the end of the work on the i-day on the i-line.

Example

Input

5 4
5
1 1 3 3
3 2 4 2
4 3 5 4
1 4 5 4
4 1 4 1


Output

9
9
13
13
14

Source: aizu | Difficulty: UNKNOWN_DIFFICULTY


Solutions: