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

int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        int n;
        cin>>n;
        long long a[n] , suma = 0, sumb = 0 ;
        for(int i= 0; i<n;i++)
        {
            cin>>a[i];
        }
        sort(a,a+n);
    
        for(int i = n-1; i>=0 ; i=i-2)
        {
            if(a[i]%2==0)
            suma= suma + a[i];
        }
        for(int i = n-2; i>=0 ; i=i-2)
        {
            if(a[i]%2!=0)
            sumb = sumb + a[i];
        }
        if(suma > sumb)
        {
            cout<<"Alice"<<endl;
        }
        else if(suma == sumb)
        {
            cout<<"Tie"<<endl;
        }
        else
        {
            cout<<"Bob"<<endl;
        }
    }
    return 0;
}