#include<bits/stdc++.h>
#define ll long long
#define yes cout<<"YES"<<endl
#define no cout<<"NO"<<endl
#define pb push_back
#define for0(i, n) for (int i = 0; i < n; i++)
#define for1(i, n) for (int i = 1; i <n; i++)
#define loop(i,a,b) for (int i = a; i < b; i++)
#define bloop(i,a,b) for (int i = a ; i>=b;i--)
#define mod 1000000007
#define f first
#define sec second
#define gcd(x,y) __gcd(x, y)
using namespace std;
void solve()
{
	ll t;
	cin>>t;
	while(t--)
	{
		ll n;
		cin>>n;
		ll a[n];
		for(ll i=0;i<n;i++)
		cin>>a[i];
		ll x=0,y=0;
		sort(a,a+n);
		reverse(a,a+n);
		if(n%2)
		{
			x=(n+1)/2;
		}
		y=n/2;
		/*for(ll i=0;i<n;i++)
		{
			if(a[i]%2==0)
			{
				x++;
			}
			else
			y++;
			
		}*/
		ll al=0,bo=0;
		for(ll i=0;i<n;i++)
		{
			if(i%2==0)
                {
                    if(a[i]%2==0)
                    {
                        al+=a[i];
                    }
                }
                else
                {
                    if(a[i]%2==1)
                    {
                        bo+=a[i];
                    }
                }
			
			
		}
		if(al>bo)
		cout<<"Alice"<<endl;
		else if(bo>al)
		{
			cout<<"Bob"<<endl;
		}
		else
		cout<<"Tie"<<endl;
		
		
	
	}
	
}
int main()
{
 	ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    solve();
}

