#include<bits/stdc++.h>
using namespace std;
void solve()
{
  long long int n;
  cin>>n;
  long long int a[n],al=0,bo=0;
  for(long long int i=0;i<n;i++) cin>>a[i];
  sort(a,a+n,greater<int>());
  //for(int i=0;i<n;i++) cout<<a[i]<<" ";
  //cout<<endl;
  for(long long int i=0;i<n;i++)
  {
    if(a[i]%2==0 && i%2==0) al+=a[i];
    else if(a[i]%2==1 && i%2==1) bo+=a[i];
  }
  //cout<<al<<" "<<bo<<endl;
  if(al>bo) cout<<"Alice"<<endl;
  else if(al<bo) cout<<"Bob"<<endl;
  else cout<<"Tie"<<endl;
}
int main()
{
  int t;
  cin>>t;
  while(t--) solve();
  return 0;
}
