The first line contains a number $T$($ 1 \leq T \leq 20$), the number of testcases.
For each testcase, there are three lines.
In the first line there are three integers $r_1$,$x_1$,$y_1$($-1000 \leq x_1,y_1 \leq 1000,0<r_1 \leq 1000$), the radius and the postion of $\textbf{the Scoring Area}$.
In the second line there are three integers $r_2$,$x_2$,$y_2$($-1000 \leq x_2,y_2 \leq 1000,0<r_2 \leq 1000$), the radius and the postion of $\textbf{the Bonus Area}$.
In the third line there is an integer $a$($0<a \leq 1000$), the side length of the square card.
$\textbf{It is guaranteed that the Scoring Area is big enough thus there is always a chance for the play to be scored}$.