Anti-stress

아직 제출이 없습니다시간 제한2초메모리 제한512 MB

문제

A huge number of people are stressed nowadays. Scientists and psychologists try to explain this phenomenon and find ways to resist stress. Businessmen, on the other hand, try to make money. They invent and sell an enormous number of different anti-stress and relaxation toys. You are stressed sometimes, as other people, so you decided to buy one of these toys.

The toy you've bought looks like an infinite bamboo desk with 2n2n pins located on it: nn of the pins are blue, the rest are yellow. There are also a red pin and nn rubber bands included in the kit. You can drive the red pin wherever you want, and then put the rubber bands over the pins. Nine of ten psychologists assure that you won't be stressed anymore if you put all nn rubber bands in such a way that each band is put over one blue pin, one yellow pin and the single red pin in the middle. In other words, each band should be attached to blue and yellow pins by its ends, and then stretched by the red pin. It is also forbidden to attach two different bands to one pin (blue or yellow).

However, the kit you've bought turned out to be defective. All the rubber bands are old, and may tear if you stretch them too much. Imagine you attached a band by its ends to some blue and some yellow pin located at points AA and BB correspondingly. Let CC be the point where you've driven the red pin. Then the band will tear if and only if angle the ACB\mathit{ACB} is acute (less than 9090 degrees). Note that you can put the red pin wherever you want, even at some point occupied by a blue or a yellow pin. If AA or BB is equal to CC then the angle ACB\mathit{ACB} is assumed to be 180180 degrees.

You are very stressed today (aren't you?). That's why you decided to seek help from this toy. Can you drive the red pin somewhere on the desk and then put all nn rubber bands so that no band will tear?

입력

The first line of input contains a single integer qq, the number of test cases (1q21051 \leq q \leq 2 \cdot 10^5).

Each test case is described as follows. The first line contains a single integer nn, the number of pins of each color (1n21051 \leq n \leq 2 \cdot 10^5). Each of the next 2n2n lines contains two integers x_ix\_i and y_iy\_i: the coordinates of pins on the desk (106x_i,y_i106-10^6 \leq x\_i, y\_i \leq 10^6). The first nn of these lines correspond to blue pins, and the latter nn lines to yellow pins.

It is guaranteed that, in each test case, no two pins are located at the same point. It is also guaranteed that the total sum of nn over all test cases is less or equal to 21052 \cdot 10^5.

출력

The output for each test case should consist of one or two lines.

If there is no way to put red pin and stretch bands so that no band will tear, print "impossible" (without quotes) on a single line.

Otherwise, print two lines for this test case:

  • The first line should contain two real numbers XX and YY: the chosen coordinates for the red pin (X|X| and Y|Y| should not exceed 10910^9).
  • The second line should contain nn integers m_im\_i. Let us enumerate blue and yellow pins from 11 to nn in the order they go in the input. Then m_im\_i means that you decided to stretch the band between ii-th blue pin and m_im\_i-th yellow pin. In other words, for each blue pin, you have to print the number of the yellow pin matched to it. Note that m_im\_i should form a permutation of integers from 11 to nn.

If there are several possible solutions, print any one of them. Here is how the angles are checked:

Let AA, BB and CC be the points with some blue pin, the yellow pin paired to the blue one, and the red pin, correspondingly. Let r=AC2+CB2r = |AC|^2 + |CB|^2 and d=AB2d = |AB|^2, where AC|AC|, CB|CB| and AB|AB| are the distances between corresponding pins. Then the checker will accept your solution if rdr \leq d with absolute or relative error less than 10610^{-6}.

힌트

Consider the first test case.

We can choose the red pin to be located at point (0,1)(0, 1), and pair the points in the following way:

  1. First blue and first yellow.
  2. Second blue and third yellow.
  3. Third blue and second yellow.

All three angles are not acute, thus the pairing is valid.