Everyone knows that in Bugland rooms are an infinite plane surface in which each point is described by two coordinates . Two bugs and can be found at coordinates and .
It is well known that in Bugland beds are perfect circles, described by the coordinates of the center of the circle and its radius. In the room in which the two bugs live there is also a single bed with center at and radius .
and want to meet but they want to be as silent as possible. Walking on the floor one unit makes (Noise per Unit), for example walking from to makes , and walking from to makes . On the other hand, walking on the bed is completly silent.
Help the two bugs and meet such that the sum of their is minimal.
Input data
The first line will contain the number of tests . Each test is described by integer numbers:
, , , , , , , where , , , are the position of the two bugs and , and are the center and the radius of the bed.
Output data
You will print lines, the line containing the answer for the query. The printed numbers have to have EXACTLY decimals, rounded down.
It is guaranteed that the decimal of the answer is inside the interval .
Constraints and clarifications
- PAY ATTENTION to printing real numbers!
Example
stdin
1
0 0 5 2 2 1 1
stdout
3.398345