#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
#define fast_io                       \
    ios_base::sync_with_stdio(false); \
    cin.tie(NULL);                    \
    cout.tie(NULL);

int main()
{
    fast_io;
#ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
#endif

    int t;
    cin >> t;
    while (t--)
    {
        int n;
        cin >> n;
        vector<ll> v(n);
        ll a = 0;
        ll b = 0;
        bool at = true;
        for (int i = 0; i < n; i++)
            cin >> v[i];
        sort(v.rbegin(), v.rend());
        for (int i = 0; i < n; i++, at = !at)
        {
            if (at)
            {
                if (v[i] % 2 == 0)
                    a += v[i];
            }
            else
            {
                if (v[i] & 1)
                    b += v[i];
            }
        }
        if (a == b)
            cout << "Tie";
        else if (a > b)
            cout << "Alice";
        else
            cout << "Bob";
        cout << endl;
    }
}