Input to this problem will begin with a line containing a single integer n indicating the number of datasets. Each data set consists of the following components:
- A line containing a single positive integer m (1 <= m <= 10) indicating the number of polygons to analyze.
- m lines, each representing a single polygon, with the first line describing polygon 1, the second line describing polygon 2, and so on. Each line begins with a single positive integer v (3 <= v <= 20) indicating the number of vertices describing this polygon. This is followed by v (x,y) coordinate pairs (0 <= x, y <= 100), each of which is a vertex of this polygon. The vertices are connected by edges in the order listed with the last vertex connected back to the first by a final edge. All polygons are "simple"; they do not self-intersect.