The first line is an integer T (1≤T≤105) — the number of test cases. In each test case, the first line is an integer r (1≤r≤109) — the radius of the circular wall C. The next line contains three integers xQ,yQ,d — the coordinates of the point Q and a half of the length of the base segment.
For each test case, print a real number in a single line, denoting the maximum length of the wall that Mocha can destroy in one cast. Your answer will be considered equal to the correct answer when their absolute or relative error doesn't exceed 10^{-6}
1
2
0 0 1
2.094395102393