You want to buy a house, so you contact a real estate company that has just started its business — and you will be their very first customer. Because of that, they make you a special offer.
The company owns a single rectangular plot of land of width $W$ and height $H$. Positions use a coordinate system whose origin $(0, 0)$ is the lower-left corner of the plot: a point that lies $x$ units to the right and $y$ units up from that corner is written as $(x, y)$, so every point of the plot satisfies $0 \le x \le W$ and $0 \le y \le H$.
Several houses have already been built on the plot. Each house is an axis-aligned rectangle whose edges are parallel to the edges of the plot, and no two houses overlap. A house is described by four integers $x_1, y_1, x_2, y_2$, where $(x_1, y_1)$ is its lower-left corner and $(x_2, y_2)$ its upper-right corner.
The special offer works like this: you may pick any axis-aligned rectangular region of the plot that contains exactly one house, together with as much (or as little) surrounding open space as you like. If you only want the land the house stands on, you may take exactly that; if you can afford more, you may keep some open space around it — a garden, for example.
The region you choose must obey these rules:
How many different regions can you choose?
The first line contains an integer $T$ (about $500$), the number of test cases.
Each test case begins with a line containing two integers $W$ and $H$ ($1 \le W, H \le 10^9$), the width and height of the plot. The next line contains an integer $N$ ($1 \le N \le 50$), the number of houses. Each of the following $N$ lines contains four integers $x_1\ y_1\ x_2\ y_2$ ($0 \le x_1 < x_2 \le W$ and $0 \le y_1 < y_2 \le H$) describing one house. No two houses overlap, and all coordinates are non-negative integers.
For each test case, print a single line in the form Case k: A, where k is the test case number (starting from $1$) and A is the number of regions you can choose. Because this number can be very large, print it modulo $10^9 + 7$.