Popularity Vote

For each poll, find the candidate with the most votes and report whether the top count is a majority, a minority, or tied.

Easy1ImplementationArrayNo attempts yetTime limit2sMemory limit256 MB

Problem

Hanshin received the results of a straw poll held to pick the party's top lawmaker. Winning the official election takes a majority of the votes, so he wants to read the poll first and plan the real campaign around it. Write a program that decides, for each poll, who the top vote getter is and whether that count is already a majority.

Input

The first line holds the number of test cases TT (1<T<5001 < T < 500).

Each test case begins with a line holding the number of candidates nn, and the next nn lines hold the votes received by candidate 1 through candidate nn, one count per line. A test case has at least 2 and at most 10 candidates. Every candidate votes for themselves, so each count is at least 1, and no candidate receives more than 50000 votes.

Output

Print one line per test case, in input order.

If exactly one candidate has the highest count, print majority winner R when that count is more than half of all votes cast in the test case, and minority winner R when it is half or less. RR is the number of that candidate, and candidates are numbered 1 to nn within each test case. If two or more candidates share the highest count, print no winner.