#include<bits/stdc++.h>
void solve() {
    const int N = 200007;
    long long num; std::cin >> num;
    long long odd = 0, even = 0;
    std::vector<int>v(num);
    for (auto& in : v)std::cin >> in;

    std::sort(v.rbegin(), v.rend());
    int f = 1;
    for (int x = 0; x < num; x++) {
        if (f) {
            if (v[x] % 2 == 0)even += v[x];
        }
        else {
            if (v[x] % 2)odd += v[x];
        }
        f = !f;
    }
    if (odd > even)std::cout << "Bob\n";
    else if (odd < even)std::cout << "Alice\n";
    else std::cout << "Tie\n";
}
int main() {
    int t; std::cin >> t;
    while (t--)
        solve();
}
