#include <bits/stdc++.h>
using namespace std;
int main()
{
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t;
  cin>>t;
  while(t--)
  {
    int n;
    cin>>n;
    vector<long long int>a(n);
    for(int i=0;i<n;i++)
      cin>>a[i];
    sort(a.begin(),a.end());
    long long int as=0,bs=0,turn=0;
    for(int i=n-1;i>=0;i--)
    {
      if(turn==0)
      {
        if(a[i]%2==0)
        {
          as+=a[i];
        }
      }
      else 
      {
        if(a[i]&1)
        {
          bs+=a[i];
        }
      }
      turn=1-turn;
    }
    if(as>bs)
      cout<<"Alice"<<endl;
    else if(bs>as)
      cout<<"Bob"<<endl;
    else
      cout<<"Tie"<<endl;
  }
}
