The Gugugagas are going net fishing.
There are equally spaced points on a circle, numbered from to in clockwise order.
Gugugagas stand at distinct points and spread a net. They can catch fish if the convex polygon formed by connecting their points in circular order contains the center of the circle. They can also catch fish when the center lies on the boundary of the polygon.
The position of one of the people has not been decided. The points occupied by the other people are given in increasing order. Find the number of points where the last person can stand so that they can catch fish. The last person must choose an unoccupied point.
The input is given in the following format.
For each test case, print the number of points where the last person can stand so that they can catch fish on one line.
In the first test case, the last person can stand at point or . In either case, the center lies on an edge of the resulting triangle.
In the second test case, points and are opposite each other. Choosing any of the unoccupied points places the center on the boundary of the triangle.
The first line contains the number of test cases . Each test case is given in the following format.
The first line of each test case contains two integers and , separated by a space.
The second line contains the occupied points in increasing order, separated by spaces.
In the first test case, the last person can stand at point , , or .
In the second test case, the last person can stand at point , , , or .
Point is the only unoccupied point. Choosing it occupies every point and forms a regular hexagon containing the center.