#include<bits/stdc++.h>
using namespace  std;

#define  int long long
#define  ll long long
typedef  vector<int> vi;
#define  fast ios::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define  pb push_back
#define  fn for(int i=0;i<n;i++)
#define  rep(i,a,b) for(ll i=a;i<b;i++)
#define  all(x) x.begin(), x.end()
#define  endl "\n"

void solve()
{ 
    int n;
    cin >> n;
    vi ar(n);
    fn cin>> ar[i];
    vi alice, bob;
    fn 
    {
        if(ar[i]%2) bob.pb(ar[i]);
        else alice.pb(ar[i]);
    }
    sort(all(ar));
    // cout << alice.size() << ' ' << bob.size() << endl;
    sort(all(alice), greater<int>());
    sort(all(bob), greater<int>());
    int a = 0, b = 0;
    
    int turn =1;
    for(int i=n-1; i>=0; i--)
    {
    	if(turn%2)
    	{
    		if(ar[i]%2==0)
    			a+=ar[i];
    	}
    	else 
    	{
    		if(ar[i]%2)
    			b+=ar[i];
    	}
    	turn ++;
    }
    // cout << a << ' ' << b << endl;
    if(a>b) cout << "Alice";
    else if(a==b) cout << "Tie";
    else cout << "Bob";
    cout <<endl;

}

int32_t main()
{
	fast
	#ifndef ONLINE_JUDGE
	freopen("input.txt","r",stdin);
	freopen("output.txt","w",stdout);
	#endif
	int t; cin>>t; while(t--)
	solve();
}