#KITEPRBL. Bob and his new kite factory

Bob and his new kite factory

Bob, owner of kite factory decided to make some good money.

He has bought new machine to produce kites, but this machine doesn't have any software in it ! He was very sad, oh, so very sad. Every kite is produced from big square sheet of paper.

He didn't want to spend next big sum of money hiring programmists, so he decided to ask you for help.

He wants his machine to :

-cut exactly as much color paper as needed to cover kite and then cover it immidiately

-make N very little small holes in the kite ( through which he can put colorful bows and other shiny things )

-at the end he wants his machine to sort convex shape kites and non-convex shapes kites ( he thinks that convex shape kites should be transported to "Biedronka" - shop for poor people, so he doesn't want to mix them with really expensive ones )

Input

In first line there is number T, number of test cases.

In first line of each test case there is number X(X<200), number of verticles of the each kite.

Then X pairs of number, xi and yi, coords of each verticle.

Left-bottomst corner of paper have (0,0) coords.

In next line number N(N<20000), number of holes to make in the kite.

Then N number, xi and yi, coords of each hole to make in the kite.

Obviously, hole cannot be made on the perimeter of kite.

We can assume that no three points are colinear, also there is no point duplicate. Bob always would give you verticles of kite in clockwise order.

Output

For each test case print area ( 10^-3 precision ) of paper which was used to produce each kite, holes which were made successfully, and digit 1 if kite is convex shape, otherwise digit 0. Separate each test case with new line

Example

Input:
1
6
0 0
5 0
4 2
5 4
0 4
1 2
3
1 1
1 2
5 2

Output:
32.000 1 0

Explaination: 32.000 area of paper to cover the kite. Only 1st hole can be made successfully (2nd is on parimeter, 3rd is out the kite)
Kite has non-convex shape