The input contains several test cases. The first line contains the number of test cases t (1≤t≤1000).
Each of the t test cases is given in the following format. The first line of a test case contains two integers n and q (2≤n≤100, n is even, 1≤q≤100), the number of pages in the textbook and the number of queries. Each of the next q lines contains one query.
- i: Peter tears out page i, and the page on the same sheet comes away with it.
? p: Peter asks for the number of the p-th page among those still remaining.
For a tear query the page is still in the textbook, and for a page number query the textbook still holds at least p pages.