#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define out(x) cout<<x<<endl
#define in(x) cin>>x
#define iin(x,y) cin>>x>>y
#define outt(x,y) cout<<x<<y<<"\n";
#define outs(x,y) cout<<x<<" "<<y<<"\n";
#define ff first
#define ss second
#define yes cout<<"YES\n";
#define no cout<<"NO\n";
#define mone cout<<-1<<"\n"
#define pi acos(-1)
#define pb push_back
const int mx=1e6+1;
     
ll gcd(ll a,ll b){if(a==0)return b;if(b%a) return gcd(b%a,a);else return a;}
bool prime(ll x){ll z=sqrt(x);
    for(int i=2; i<=z; i++)if(x%i==0)return 0;
    return 1;
}
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    ll m,p,q,c,i,x,j,t,k,sum=0,cnt=0,ans,res;
    cin>>t;
    while(t--)
    {
          ll n;
          cin>>n;
          ll a[n];
          for(i=0;i<n;i++)
          {
              cin>>a[i];
          }
          sort(a,a+n);
          ll alice=0,bob=0;
          k=0;
          for(i=n-1;i>=0;i--)
          {
              if(k%2==0&&a[i]%2==0)alice+=a[i];
              else if(k%2==1&&a[i]%2==1)bob+=a[i];
              k++;
          }
          if(alice>bob)cout<<"Alice\n";
          else if(bob>alice)cout<<"Bob\n";
          else cout<<"Tie\n";
    }
 
 
 
    return 0;
}