#include <bits/stdc++.h>

using namespace std;

#define debug cout << "debug\n";
#define int long long
#define inf INT_MAX




int32_t main() {
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);

	int t;
	cin >> t;
	while (t--) {
		int n;
		cin >> n;
		deque<int> d;
		for (int i = 0; i < n; i++) {
			int x;
			cin >> x;
			d.push_back(x);
		}
		sort(d.begin(), d.end());

		bool alice = true;
		int a = 0, b = 0;
		for (int i = n - 1; i >= 0; i--) {
			if (alice) a += (d[i] % 2 == 0 ? d[i] : 0);
			else b += (d[i] % 2 == 1 ? d[i] : 0);
			alice = !alice;
		}
		cout << (a > b ? "Alice" : (a == b ? "Tie" : "Bob")) << endl;
	}
	return 0;	
}
