Monster trainers go looking for monsters, but a monster is dangerous to anyone who is not a trainer. You want to find safe spots that hold no monsters.
Think of the world as a grid. Some cells hold one monster each. A safe square is a grid-aligned square region of D×D cells that contains no monster at all (D≥1). Count how many safe squares of any size the whole world has. Two squares of the same size at different positions count separately.
Input
The first line contains the number of test cases T.
Each test case starts with a line holding three integers R, C, and K. The grid has R rows and C columns and holds K monsters. Each of the next K lines holds the row Ri and the column Ci of the i-th monster. Rows are numbered from top to bottom starting at 0, and columns from left to right starting at 0.
Output
For each test case, print one line in the form Case #x: y, where x is the test case number starting at 1 and y is the number of safe squares in that test case.
Constraints
1≤T≤20
1≤R≤3000
1≤C≤3000
0≤K≤3000
0≤Ri<R (1≤i≤K)
0≤Ci<C (1≤i≤K)
(Ri,Ci)=(Rj,Cj) for i=j. No cell holds more than one monster.