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

#define int long long
#define mod 1000000007
#define pii pair<int,int>
#define pb push_back
#define ff first
#define ss second
#define endl '\n'
#define M_PI 3.14159265358979323846

int32_t main()
{

    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    int t;
    cin>>t;
    while(t--){
        int n;
        cin>>n;
        vector<int> a(n);
        vector<int> sum(2);
        for(int i=0;i<n;i++){
            cin>>a[i];
            if(a[i]%2) sum[1] += a[i];
            else sum[0] += a[i];
        }
        sort(a.begin(),a.end());
        int ch = 0;
        for(int i=n-1;i>=0;i--){
            if(ch%2 != a[i]%2){
                sum[a[i]%2] -= a[i];
            }
            ch++;
        }
        if(sum[0]>sum[1]){
            cout<<"Alice"<<endl;
        }
        else if(sum[0]<sum[1]){
            cout<<"Bob"<<endl;
        }
        else{
            cout<<"Tie"<<endl;
        }
    }
}
