#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;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KI2RlZmluZSBsbCBsb25nIGxvbmcgaW50CiNkZWZpbmUgdmVjIHZlY3RvcjxsbD4KI2RlZmluZSBmKHZhcixhLGIpIGZvcihsbCB2YXIgPSBhIDsgdmFyIDwgYiA7IHZhcisrICkKI2RlZmluZSBmcih2YXIsYSxiKSBmb3IobGwgdmFyID0gYSA7IHZhciA+IGIgOyB2YXItLSApCiNkZWZpbmUgZmFzdGhvamEgaW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbyhmYWxzZSk7IGNpbi50aWUoTlVMTCk7CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CnZvaWQgYXR0MShsbCBuKSB7CiAgICBpZiggbiA9PSAxICkgY291dCA8PCAiQm9iXG4iOwogICAgZWxzZSBpZiggbiA9PSAyICkgY291dCA8PCAiQWxpY2VcbiI7CiAgICBlbHNlIGlmKCBuID09IDMgKSBjb3V0IDw8ICJCb2JcbiI7CiAgICBlbHNlIHsKICAgICAgICBsbCBzZXRCaXQgPSBfX2J1aWx0aW5fcG9wY291bnQobik7CiAgICAgICAgaWYoIHNldEJpdCA9PSAxICYmIChuICUgMiA9PSAwKSApIGNvdXQgPDwgIkRyYXdcbiI7CiAgICAgICAgZWxzZSBjb3V0IDw8ICJCb2JcbiI7CiAgICB9Cn0KaW50IG1haW4odm9pZCl7CiAgICBmYXN0aG9qYTsKICAgIGxsIHQ7IGNpbj4+dDsKICAgIHdoaWxlKHQtLSl7CiAgICAgICAgbGwgbjsgY2luID4+IG47CiAgICAgICAgYXR0MShuKTsKICAgIH0vL2VuZCBvZiB0ZXN0IGNhc2UgbG9vcAogICAgcmV0dXJuIDA7Cn0=