Problem: The Olympic Games have just started and Federico is eager to watch the marathon race.
There will be athletes, numbered from to , competing in the marathon, and all of them have taken part in important marathons, numbered from to , in the past. For each and , Federico remembers that athlete ranked -th in marathon (e.g., means that athlete was third in marathon ).
Federico considers athlete superior to athlete if athlete ranked better than athlete in at least past marathons, i.e., for at least distinct values of .
Federico believes that an athlete is likely to get the gold medal at the Olympics if he is superior to all other athletes.
Find any athlete who is likely to get the gold medal (that is, an athlete who is superior to all other athletes), or determine that there is no such athlete.
Input Format: The first line contains a single integer () — the number of test cases. Then test cases follow.
The first line of each test case contains a single integer () — the number of athletes.
Then lines follow, each describing the ranking positions of one athlete.
The -th of these lines contains the integers () — the ranking positions of athlete in the past marathons. It is guaranteed that, in each of the past marathons, the athletes have distinct ranking positions, i.e., for each , the values are distinct.
It is guaranteed that the sum of over all test cases does not exceed .
Output Format: For each test case, print a single integer — the number of an athlete who is likely to get the gold medal (that is, an athlete who is superior to all other athletes). If there are no such athletes, print . If there is more than such one athlete, print any of them.
Note: Explanation of the first test case: There is only one athlete, therefore he is superior to everyone else (since there is no one else), and thus he is likely to get the gold medal.
Explanation of the second test case: There are athletes.
- Athlete is superior to athlete . Indeed athlete ranks better than athlete in the marathons , and .
- Athlete is superior to athlete . Indeed athlete ranks better than athlete in the marathons , , and .
- Athlete is superior to athlete . Indeed athlete ranks better than athlete in the marathons , and .
Explanation of the third test case: There are athletes.
- Athlete is superior to athletes and . Since he is superior to all other athletes, he is likely to get the gold medal.
- Athlete is superior to athlete .
- Athlete is not superior to any other athlete.
Explanation of the fourth test case: There are athletes.
- Athlete is superior to athletes , , .
- Athlete is superior to athletes , , .
- Athlete is superior to athletes , , .
- Athlete is not superior to any other athlete.
- Athlete is superior to athletes , , , , . Since he is superior to all other athletes, he is likely to get the gold medal.
- Athlete is only superior to athlete .