#include <bits/stdc++.h>
#define ll long long
#define pb push_back

//ll n; cin>>n; ll i,a[n];  for(i=0;i<n;i++) cin>>a[i];
using namespace std;
void solve()
{
    ll n,x,i,c=0,sa=0,sb=0; cin>>n;
    vector<ll> a,b;
    for(i=0;i<n;i++){ cin>>x;
    if((x)%2==0)
    a.pb(x);
    else
    b.pb(x);
    }
    ll al=a.size();
    ll bl=b.size();
    sort(a.begin(),a.end());
    sort(b.begin(),b.end());
    
    while(n--)
    {
        if(c==0)
        {
            if(al==0) bl--;
             else
             {
                if(bl==0)
                {
                   sa+=a[al-1];
                   al--;
                }
             
            else
            {
                if(a[al-1]>=b[bl-1])
                {
                    sa+=a[al-1];
                    al--;
                    
                }
                else
                bl--;
            }
             }
        }
        else
        {
            if(bl==0) al--;
            else
            {
                if(al==0) sb+=b[bl-1],bl--;
                else
                {
                    if(a[al-1]<b[bl-1])
                    {
                        sb+=b[bl-1]; bl--;
                    }
                    else al--;
                }
            }
        }
        c=1-c;
    }
    if(sa>sb) cout<<"Alice\n";
    else if(sa<sb) cout<<"Bob\n";
    else cout<<"Tie\n";
}
int main(void){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    int t;
    cin>>t;
    while(t--)
    {
        solve();
    }
   // cout << "\nTime Elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " sec\n";
   
   
}