#NITT4. Tiles
Tiles
Given a N × M floor with few blocks already filled, check if it is possible to fill the remaining space with only 2 × 1 blocks, if it is not possible, print the minimum number of 1 × 1 blocks required to fill the floor completely.
Input
First line contains N (number of rows), M (number of columns), B (number of already blocked cells), followed by B lines each containing 2 integers x, y coordinates of the blocked cell
1 <= N <= 100, 1 <= M <= 100, 0 <= B <= N × M
Output
If it is possible to fill the floor with only 2 × 1 tiles, print Yes, else print No and the minimum number of 1 × 1 tiles required.
Example
Input: 1 1 0</p>Output: No 1
Input: 2 2 0 Output: Yes
Input: 2 2 2 0 1 1 0 Output: No 2