Author:  ACM ICPC 20092010, NEERC, Northern Subregional Contest  Time limit:  3 sec  
Input file:  circles.in  Memory limit:  256 Mb  
Output file:  circles.out 
Yesterday Andrew wrote a program that draws n white circles on a black screen. The screen is monochrome and it has a resolution w × h pixels. Pixels are numbered from upper left corner (0, 0) to bottom right one (w − 1, h − 1).
A circle with the center at pixel (x_{c}, y_{c}) and the radius r consists of the pixels with coordinates (x, y) such that √(x_{c} − x)^{2} + (y_{c} − y)^{2} ≤ r. If the circle does not fit on the screen, it is truncated. If some pixel belongs to two or more circles, it is white.
The resulting picture was very nice, so Andrew decided to copy it to his wall. He has white wallpaper and he can only draw some parts of wall into black. Now he wants to know the amount of paint he needs. He copies the picture exactly pixeltopixel, so you should write a program that calculates the number of black pixels left on a screen after drawing n circles.
In the first line of input file there are three integers: w, h, and n (1 ≤ w, h ≤ 20000; 1 ≤ n ≤ 100). Each of the following n lines contains descriptions of the circle. In i + 1th line there are three integers: x_{i}, y_{i}, r_{i} (0 ≤ x_{i} < w; 0 ≤ y_{i} < h; 0 ≤ r_{i} ≤ 40 000). They denote a circle with the center at pixel (x_{i}, y_{i}) and radius r_{i}.
Note: The picture corresponds to the second example.
You should output exactly one number — the number of black pixels left on the screen.
No.  Input file (circles.in ) 
Output file (circles.out ) 

1 


2 

