#Lutece0091. Invasion

Invasion

Migrated from Lutece 91 Invasion

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

Yesterday, a rocket from the neighbor country hit your country, and caused a big hole. The Field Force measured the length of destroyed wall. As the most prestigious scientist, you are required by goverment to calculate the maximum lethal radius that could cause the disaster of the measured length to estimate the military strength of the neighbor country. The walls in your country are built in the shape of circle or convex polygon.

Input

First line of the input is a single integer TT(1T3001 \leq T \leq 300), indicating there are TT test cases.

The first line of each test case contains a integer NN (1N3001 \leq N \leq 300) and real number MM (1M1041 \leq M \leq10^4), which represents number of walls and total destroyed length.

Each of the next NN lines represents a wall.

C X Y RC\ X\ Y\ R means the wall is in the shape of circle with the center in (X,Y)(X,Y) and a radius of RR.

P Np X1 Y1 X2 Y2 P\ N_p\ X_1\ Y_1\ X_2\ Y_2\ \cdots means the wall is in the shape of convex polygon with NpN_p points and the coordinate of those points(showed in clockwise order or anti-clockwise order) is X1Y1XNpYNpX_1 Y_1 \cdots X_{N_p} Y_{N_p}.

The last line of the test case contains the coordinate of the landing site of the rocket.

Output

For each case, you should output a single line, first output Case #t: , where tt indicating the case number between 11 and TT. Then a single real number follows, indicating the lethal radius of the rocket.

If it is impossible to cause a disaster with the given destroyed length, output impossible other than the real number. Besides, if the lethal radius of the rocket can be any real number greater than a particular real number, output inestimable instead of others.

Round the answer to the second digit after the decimal point.

Samples

3
1 1.0
C 2.0 0.0 1.0
0.0 0.0
1 4.0
P 4 0.0 0.0 1.0 0.0 1.0 1.0 0.0 1.0
4.0 4.0
1 5.0
P 4 0.0 0.0 1.0 0.0 1.0 1.0 0.0 1.0
4.0 4.0
Case #1: 1.22
Case #2: inestimable
Case #3: impossible

Note

All the numbers used to represent coordinate are real numbers which absolute value are less than 10410^4.

The total points in the each test case are no more than 300300. The total points here consist of the center of the circle and the points of polygon.

The pictures below are just for fun.

.

.

Resources

Sichuan State Programming Contest 2012