The first line of input contains a single integer(
) representing the number of polygons to be painted. Following this are
lines each describing a painted polygon. Each polygon description starts with an integer
(
) indicating the number of sides in the polygon, followed by
pairs of integers
![]()
(
specifying the coordinates of the vertices of the polygon in consecutive order. Polygons may be concave but no polygon will cross itself. No point on the canvas will be touched by more than two polygon border segments.
Display both the total amount of paint used and the amount of canvas covered. Your answers must have a relative or absolute error of at most