Each test contains multiple test cases. The first line contains the number of test cases $T(1 \le T \le 10)$. Description of the test cases follows.
The first line of the input contains two integers $n$ and $m$ $(1\le n \le 20, 1 \le m \le 100)$ indicating the number of stations and the number of buildings.
For the following $n$ lines, the $i$-th line contains two integers $x_i$ and $y_i$ $(-2\times 10^6 \le x_i, y_i\le 2\times 10^6)$ indicating that the coordinate of the $i$-th station.
For the following $m$ lines, the $i$-th line contains eight integers $x_{i1},y_{i1},x_{i2},y_{i2},x_{i3},y_{i3},x_{i4},y_{i4}$ $(-2\times 10^6\le x_{i1},y_{i1},x_{i2},y_{i2},x_{i3},y_{i3},x_{i4},y_{i4}\le 2\times 10^6)$ indicating that the four vertices of the $i$-th building. The coordinates are given in counter-clockwise order starting from the top-right corner. It's guaranteed that the boundaries of buildings are parrallel to the coordinate axes. Any two buildings will not intersect or contain. Building boundaries will not overlap.
It's guaranteed that the stations will not be inside or on the boundary of buildings.