You have a rectangular sheet of paper with dimensions centimeters. The sheet is squared into a net of squares centimeters each. You can consider the sheet as a coordinate system — its lower left corner is the origin of the coordinate system and each vertex of a square is assigned with integer coordinates — between and on the axis and between and on the axis. You are receiving a sequence of requests for cutting the sheet of paper (or more precisely, the piece that has left from it). Each request is defined by a pair of nonnegative integers , representing a vertex from the net, that is situated into the uncut portion of the paper. Cutting is executed according to the following algorithm: two segments are drawn, both starting at point , one is at an angle of , and the other at an angle of to the axis , pointed "upwards", i.e. with increasing . Both segments end at the border of the rectangular sheet of paper. After that the portion of the paper that is above the drawn segments is cut off and the rest piece of paper remains as a new figure (see the example pictures)
Following is an example with starting rectangular paper with dimensions and , as well as all figures that remain after following cutting requests:
- — the blue part is cut
- — the red part is cut
- — the green part is cut
- — the brown part is cut
Task
Write a program that after each request calculates the remaining figure's area.
Important: It is possible to receive a request which will define one of the segments with length , for example if the point is situated on the leftmost or rightmost border of the rectangle. However, it is guaranteed that each request will lead to cutting a positive area figure.
Input
From the first line of the standard input read two positive integers and — dimensions of the initial sheet of paper. From the second line read a positive integer — number of cutting requests. From the last lines read two nonnegative integers and , separated by space — coordinates of the point, which defines a cutting request.
Output
For each cutting request, on a seperate line, your program should print one number — area of the paper figure remaining after the cutting. The value of the area should be printed with two digits after the decimal point.
Constraints
- In of the tests:
- In of the tests:
- Each test is evaluated separately.
Example
stdin
20 10
4
10 5
4 7
0 1
16 3
stdout
175.00
167.00
138.50
103.00
Explanation
The example corresponds to the example with pictures above.