This problem contains multiple test cases.
The first line contains an intger $T$ indicates the number of test cases.
For each test case, the frist line contains one intger $n$ ($3 \leq n \leq 10^5$) indicating the number of points in the convex hull.
The next $n$ lines each contains two integers $x_i,y_i$ ($0 \leq |x_i|,|y_i| \leq 10^6$) which means the coordinate of the $i_{th}$ point.
It's garanteed that the points will be given in the order to form the polygon and in counter-clockwise.
Then you will be given an integer $q$ ($1 \leq q \leq 10^5$) indicating the number of queries.
The next $q$ lines each contains six integers $x_1,y_1,x_2,y_2,x_3,y_3$ ($0 \leq |x|,|y| \leq 10^6$) which means the coordinates of the points of the triangle.
It's guaranteed that the sum of $n$ is no more than $6 \times 10^5$.