Kyablakanto and his friend Chalakanti went into the Mirror Room after browsing through the fair. In the Mirror Room, in front of the huge mirror, each of them waved to their reflections on the mirror. But, Kyablakanto being a little dumb, can't figure out where he needs to look on the mirror to see his friend. If he waves at wrong direction, he fears that she might leave him in the fair alone. That's why he called you. He knows you are an excellent programmer. As a friend, you have to help him.
You can consider the mirror to be infinite and compared to that Kyablakanto and Chalakanti seem like dots. On a 2-dimensional Cartesian coordinate system, the mirror is on the x-axis ( line) and Kyablakanto, Chalakanti are at and , respectively. Your job is to find out a point on the mirror such that if Kyablakanto looks at that point, he can see his friend there.
The first line of input contains an integer . You need to solve test cases.
Input follows lines. Each line corresponds to the input for one test case. Each of the line contains 4 space separated integers .
You need to output lines. Each line should contain two real numbers who represent . -th line should contain the answer to the -th test case.
For every output number, if the absolute difference between your and judge's output are less than , your output will be considered correct. That means, if one of your output is and the judge has as it's output, your output would be considered correct if is satisfied.
2 2 6 4 9 10 1 1 10
2.8000000000000000 0.0000000000000000 9.1818181818181818 0.0000000000000000
There are test cases.
Following image should describe the first test case.
The following picture describes the second test case.
Login to submit
Be a good kid and read the Bangla editorial. :)