#include<bits/stdc++.h>
typedef long long int ll;
using namespace std;

int main() {
	ios::sync_with_stdio(0);
    cin.tie(NULL);
    cout.tie(NULL);
  	
  	long t;
  	cin>>t;
  	while(t--)
  	{
  		int n;
  		cin>>n;
  	
  		vector<int> v(n,0);
  		for(int i=0;i<n;++i){
  			cin>>v[i];		
		}
		sort(v.begin(),v.end(),greater<int>());
		ll a=0,b=0;
		for(int i=0;i<n;++i){
			if(i%2==0){
				if(v[i]%2==0){
					a+=v[i];
				}
			}
			else{
				if(v[i]%2){
					b+=v[i];
				}
			}
		}
		if(a>b){
			cout<<"Alice\n";
		}
		else if(b>a){
			cout<<"Bob\n";
		}
		else{
			cout<<"Tie\n";
		}
	}
   	return 0;
}
