#include<bits/stdc++.h>
using namespace std;
long long a[1000010];
bool cmp(long long a,long long b)
{
	return a>b;
}
int main() {

	long long m,n,i,j,x,y,suma=0,sumb=0;
	cin>>n;
	while(n--)
	{
		cin>>m;
		for(i=0;i<m;i++)
		cin>>a[i];
		sort(a,a+m,cmp);
		for(i=0;i<m;)
		{
		if(a[i]%2==0)
		suma+=a[i];
		i++;
		if(a[i]%2!=0)
		sumb+=a[i];
		i++;
		
	}
		if(sumb==suma)
		cout<<"Tie"<<endl;
		if(suma>sumb)
		cout<<"Alice"<<endl;
		if(suma<sumb)
		cout<<"Bob"<<endl;
		suma=0;
		sumb=0;
	}

	return 0;
}
		     	   	 	   			 			 	    	