Dollars and Euros

No attempts yetTime limit1sMemory limit128 MB

Problem

Wallace is a well known gangster, a real G. Like every gangster he has a lot of cash that he likes to spend on jewels. For safety he does not keep his money in a single wallet, but spreads it across many. Wallace is about to head out on the town with his crew.

He wants to take roughly half of his wallets, yet he also wants to carry enough money. More precisely, Wallace has 2n12n - 1 wallets, and each one holds some number of dollars and some number of euros. For the trip he wants to take exactly nn wallets so that the total number of dollars in these nn wallets is at least half of the total dollars across all 2n12n - 1 wallets, and the total number of euros in the chosen nn wallets is at least half of the total euros across all wallets.

Wallace knows how to make money; you know how to program. You know what to do.

Input

The first line of the input contains a single integer tt, the number of test sets. The description of each test set follows.

The first line of a test set contains a single integer nn (1n5000001 \le n \le 500\,000), meaning that Wallace has 2n12n - 1 wallets. Each of the next 2n12n - 1 lines describes one wallet with two integers did_i and eie_i (0di,ei1090 \le d_i, e_i \le 10^9): wallet ii holds did_i dollars and eie_i euros.

You may assume that the sum of nn over all test sets does not exceed 25000002\,500\,000.

Output

Print the answer for each test set in order.

It can be shown that a valid choice of nn wallets always exists. To make the answer unique, assume that Wallace picks his wallets with the following fixed procedure.

  1. Number the wallets 1,2,,2n11, 2, \ldots, 2n - 1 in the order they are given.
  2. Sort the wallets by their dollar amount in decreasing order; break ties by euro amount in decreasing order, and break any remaining ties by wallet number in increasing order.
  3. Keep the first wallet in this order.
  4. Group the remaining 2n22n - 2 wallets, in the same order, into consecutive pairs (the 2nd with the 3rd, the 4th with the 5th, and so on). From each pair keep the wallet with more euros; if the two hold equal euros, keep the one with more dollars; if they are still equal, keep the one with the smaller wallet number.

This selects exactly nn wallets and always satisfies both conditions.

For each test set print two lines. On the first line print Yo. On the second line print the nn chosen wallet numbers in increasing order, separated by single spaces.