/******************************************************************************

Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.

*******************************************************************************/
#include<bits/stdc++.h>
#define ll long long
#define int long long
#define sz(c) c.size()
#define fr first
#define sc second
#define pb push_back
#define sz(c) c.size()
#define ppb  pop_back
#define all(a)      (a).begin(),(a).end()
#define rep(i,a,n)   for( int i=a ; i<n ; i++)
#define U 1000000007
#define N 100005
#define ins insert
using namespace std;
void solve()
{
    int n;
    cin>>n;
    int arr[n],alice=0,bob=0;
    rep(i,0,n)
    {
        cin>>arr[i];
    }
    int in=0;
    sort(arr,arr+n);
    for(int i=n-1;i>=0;i--)
    {
        if(in%2==0)
        {
            if(arr[i]%2==0)
            alice+=arr[i];
        }
        else
        {
            if(arr[i]&1)
            bob+=arr[i];
        }
        in=1-in;
    }
    if(alice==bob)
    cout<<"Tie\n";
    else if(alice>bob)
    cout<<"Alice\n";
    else
    cout<<"Bob\n";
}
signed main()
{
	ios_base::sync_with_stdio(false);
 	
 	int t;
 	cin>>t;
 	while(t--){
 		solve();
 	}
 
 
}


