Dining DINING

All submissions for this problem are available.<h3> Read problems statements in Mandarin Chinese , Russian and Vietnamese</h3>

Sergey is visiting ChefTown - a town famous for its' restaurants with famous ChefLand's cuisine. Among the most recommended things to do in ChefTown is to taste ChefLand's all N national dishes. Sergey has decided to do it, but as the person who is fond of planning everything, he needs to plan his restaurants' visit's in advance.

He knows that he will stay in ChefTown for D days and each day he'll have a dinner in one of ChefTown's restaurants. It is always hard to say, whether a particular dish will appear in the restaurant on some particular day. But based on the internet reviews, he concluded that the probability that the i-th dish will appear in the restaurant he's going to visit on the j-th day is Ai, j.

On the other hand, everything is even more complicated. Sergey is a thin guy and thus unable to eat more than K dishes in a single day. That doesn't mean that he has to eat K dishes every day, but if he won't eat any dish at all during some day, he'll go to sleep hungry and displeased, so he wants to avoid such situations. Because of hard financial situation, he will have food only in restaurants and wants to taste all the dishes exactly once.

Now, in order to process all this information, Sergey asks you to help him. Please make a plan for him such that:

Input

The first line of the input contains an integer T denoting the number of test cases. The description of T test cases follows.

The first line of each test case contains single space-separated integers N, D and K denoting the number of dishes that Sergey wants to taste, the number of days he'll stay in ChefTown and the maximum number of dishes he can eat during a single day respectively.

The following N lines will contain D space-separated real numbers each, where the j-th real number in the i-th line denotes the probability that the dish numbered i-th will be available in the restaurant that he will visit during the j-th day.

Output

For each test case, output two lines.

Constraints

Example

Input:
1
3 3 1
1.0 1.0 0.8
0.8 1.0 1.0
0.8 0.8 0.8

Output:
0.8
1 2 3

Explanation

Example case 1.On the first day, Sergey will eat the first dish. On the second day, he'll eat the second dish. On the third day, he'll try eat the third dish that will appear with the probability of 0.8. The total probability of dishes being available on these days is </b>0.8</b>. It is impossible to achieve the better result.