#include<bits/stdc++.h>
using namespace std;
#define forn(i,l,u) for(i=l;i<u;i++)
#define fors(i,l,u,s) for(i=l;i<u;i+=s)
#define fors_dw(i,u,l,s) for(i=u;i>=l;i-=s)
typedef long long ll;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int t;
    cin>>t;
    while(t--){
        ll n,i,ele;
        cin>>n;
        int turn = 1;
        ll ans[2] = {0};
        int key = 0;
        priority_queue<ll> pq;
        forn(i,0,n){
            cin>>ele;
            pq.push(ele);
        }
        while(!pq.empty()){
            ele = pq.top();
            pq.pop();
            if(turn&1){
                key = 0;
            }
            else{
                key = 1;
            }
            if((ele&1) && (key == 1)){
                ans[key] += ele;
            }
            if(!(ele&1) && (key == 0)){
                ans[key] += ele;
            }
            turn++;
        }
        if(ans[0] > ans[1]){
            cout<<"Alice\n";
        }
        else if(ans[0] == ans[1]){
            cout<<"Tie\n";
        }
        else{
            cout<<"Bob\n";
        }

    }
    
    
}