#include<bits/stdc++.h>
#define ll long long int
#define vec vector<ll>
#define f(var,a,b) for(ll var = a ; var < b ; var++ )
#define fr(var,a,b) for(ll var = a ; var > b ; var-- )
#define fasthoja ios_base::sync_with_stdio(false); cin.tie(NULL);
using namespace std;
void att1(ll n) {
    if( n == 1 ) cout << "Bob\n";
    else if( n == 2 ) cout << "Alice\n";
    else if( n == 3 ) cout << "Bob\n";
    else {
        ll setBit = __builtin_popcount(n);
        if( setBit == 1 && (n % 2 == 0) ) cout << "Draw\n";
        else cout << "Bob\n";
    }
}
int main(void){
    fasthoja;
    ll t; cin>>t;
    while(t--){
        ll n; cin >> n;
        att1(n);
    }//end of test case loop
    return 0;
}