Lottery Games

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

문제

You live in a lively town named Lottery Vegas where lots of different kinds of lottery games are available for you to play. Next to your house, you found an interesting lottery game that is called Double ticket winner ainu7 for the win, named after a really famous Miku-admirer.

The ainu7 lottery game consists of PP different lottery tickets. The i-th ticket contains numbers between 11 and N_iN\_i, inclusive, and you are to pick M_iM\_i numbers out of them. The ainu7 lottery game seller also picks M_iM\_i numbers while you are picking. For each lottery ticket, you win if you and the seller have at least K_iK\_i numbers in common with the seller. You can assume that the seller picks the numbers at random, regardless of what you pick.

You are curious which of the PP tickets gives you the highest winning odds. If there are multiple such tickets with the same highest winning odds, you want to know them all.

입력

The input consists of TT test cases. The number of test cases TT is given in the first line of the input.

The first line of each test case contains a single integer PP (2P1002 ≤ P ≤ 100), the number of lottery tickets. Following PP lines contains three numbers each: N_iN\_i, M_iM\_i, and K_iK\_i where 3N_i503 ≤ N\_i ≤ 50, 1M_iN_i1 ≤ M\_i ≤ N\_i, and 1K_iM_i1 ≤ K\_i ≤ M\_i.

출력

For each test case, you must output a single line of integer(s). It must contain the lottery game number(s) with highest winning odds. If there are multiple, you must sort them, and the game number is 1-based.