You will be given an isosceles right angled triangle. The legs of the triangle have a length of L and lies along the positive X axis and Y axis. You can assume that the coordinates of the three vertices of the triangle are (0, 0), (L, 0) and (0, L).

Your task is to divide the triangle into two sections of equal area by drawing a straight line segment starting from a point on the perimeter to another point on the perimeter of the Triangle.

However, there is a small twist. You cannot just draw the line from any point. You will be given the starting point of the segment on the perimeter. You have to find the coordinate of the other end of that segment.

Input

The first line contains an integer T (T ≤ 1000), the number of test cases. For each test case, there are three integers, L, x, y. Here, L (1 ≤ L ≤ 100000) is the length of the legs, and (x, y) is the coordinate of starting point of the segment.

Output

For each case, print the coordinate of the other end point of the segment. An error lower than 1e-4 will be ignored by the judge. Check sample input and output section for formatting.