The input consists of several test cases terminated by end-of-file.
The first line of each test case contains two integers n and m. The i-th of the following n lines contains two integersand
.
*
*
*
*
* The sum of n does not exceed.
* The sum of m does not exceed.
For each test case, print an integer which denotes the result.