Time limit: 1s
Memory limit: 512MB
Input:
Output:
Task
You are given baskets. The -th basket contains apples, bananas and cherries. Pick at most baskets in a way that you get at least half of each fruit.

It can be proven that there is always a solution. If there are multiple solutions, you can output any of them.
Input data
The first line of the input file contains a single integer , the number of test cases. test cases follow.
Each test case consists of:
- a line containing integer , the number of baskets.
- lines, the -th of which consisting of integers , , , the number of apples, bananas, cherries in the -th basket.
Output data
The output file must contain lines, two lines for each test case. For each test case:
- Print a single integer , the number of baskets you choose.
- On the next line, print integers -- the 0-based indices of the chosen baskets, separated by spaces.
Constraints and clarifications
- .
- . It is guaranteed that the sum of over all test cases does not exceed .
- for each .
| # | Score | Constraints |
|---|---|---|
| 1 | 0 | Examples |
| 2 | 10 | , the sum of over all test cases does not exceed |
| 3 | 20 | for each . , the sum of over all test cases does not exceed |
| 4 | 20 | for all (no cherries in the baskets) |
| 5 | 50 | No additional restrictions |
Example 1
stdin
1
6
1 0 0
1 0 0
1 0 0
0 1 0
0 1 0
0 0 2
stdout
4
0 1 3 5
Explanation
In the first sample case, we need at least half of each fruit:
- Apples 2 pick at least 2 baskets from first 3 (1 0 0)
- Bananas 1 pick at least 1 basket from baskets 3-4 (0 1 0)
- Cherries 1 pick basket 5 (0 0 2)
Example 2
stdin
1
6
6 1 2
1 6 2
2 2 5
1 2 6
3 3 3
2 2 4
stdout
4
0 1 2 3