The first line of input contains two integersdenoting the rows and columns of LaunchPad.
The second line of input contains single integerdenoting the times of touch.
On the next Q lines,describe X and Y - the position of the square being touched.
Print one line - the number of the squares that is on light state.