#Lutece0399. Refraction I

Refraction I

Migrated from Lutece 399 Refraction I

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

Refraction is a common phenomena in our life. Now ,comes a problem. Give you a kind of liquid and its refractive index, you should calculate the focus of the light on the ground(Point TT in the picture below).

To let the problem easier,we assume that the air's refractive index is always 11. As the picture below,the light source is always in the air(the point SS in the picture). We assume the YY coordinate of ground level is 00.

title

Input

The first line of the data contains a number TT(1T5001\leq T\leq 500), indicating the total number of test cases. Each test case consists of 22 lines .The first line contains 44 numer x1,y1,x2,y2x_1,y_1,x_2,y_2, indicating the coordinate of the light and the coordinate of the direction respectively. The second line contains 22 numbers nn, HH, indicating the refractive index of the liquid and the depth of the liquid.

Output

For each test case, write a single float numbers xx on a single line, indicating the XX coordinate of the focus,retain 33 digits after the decimal point.

If there is not focus on the ground ,just output Impossible on a single line.

Samples

3
3 6 0 6
1.35 3
3 6 0 3
1.35 3
3 6 3 3
1.35 3
Impossible
-1.845
3.000

Resources

10th SCU Programming Contest Final