#include <bits/stdc++.h>
#define int long long
#define F0R(i, n) for(int i = 0; i < (n); i++)
using namespace std;

signed main()
{
    ios::sync_with_stdio(0);
    cin.tie(0), cout.tie(0);
    int T; cin >> T;
    F0R(cas,T) {
        int N; cin >> N;
        vector<int> a(N);
        for(int &x : a)
            cin >> x;
        sort(a.begin(),a.end(),greater<int>());
        int evsum = 0, odsum = 0;
        F0R(i,N) {
            if(i%2 && a[i]%2)
                odsum += a[i];
            if((i%2 == 0) && (a[i]%2 == 0))
                evsum += a[i];
        }
        if(evsum >  odsum) cout << "Alice\n";
        if(evsum == odsum) cout << "Tie\n";
        if(evsum <  odsum) cout << "Bob\n";
    }
    return 0;
}
