Alice and Bob are playing a hectic game in which there are a total of N tasks each consisting of a start time Si and end time Ei.
Both players take alternate turns, Alice plays first. In each turn, a player chooses the maximum number of tasks that are non-overlapping as both Alice and Bob can perform only one task at a time. In the next turn, the other player will choose the maximum number of tasks that are non-overlapping from the remaining tasks and so on.
Now, both the players will take XOR (Exclusive - OR) of the total tasks count value obtained in each of their turns. Let the value be A for Alice and B for Bob. Now, If A>B, Alice wins. If B>A, Bob wins. If A=B, it's a tie. Find out the winner?
Note: The ending time Ei for each selected task in each turn should be as less as possible, e.i. if the given tasks are [15], [38], [610], [915], Alice can choose maximum 2 tasks in 3 ways as [15], [610] or [15], [915] or [38], [915]. Alice will choose [15], [610] as the ending time for each selected task is as less as possible in this case.
Input Format
The first line of the input will be T, the total number of test cases.
The first line of each test case will be N, the total number of tasks.
Then N lines follow each consisting of two space-separated integers Si and Ei the start time and the end time.
Output Format
For each test case print the respective result Alice, Bob or Tie.
Constraints
1≤T≤10
1≤N≤103
1≤Si≤Ei≤109
Initially, there are maximum 2 tasks Alice can choose i.e. [12] and [34]. From the remaining tasks, Bob can choose maximum 2 tasks i.e. [13] and [45]. Now, Alice chooses the 1 last task i.e. [15].
A = 2 ^ 1 = 3
B = 2
A>B thus, Alice wins.