#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ii pair<int,int>
#define fi first
#define se second
#define pb push_back
int main(){
ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
int ntest;
cin>>ntest;
while(ntest--){
int n;
cin>>n;
int ans=0;
if(n==1) ans=2;
else if(n&(n-1)==0){
int tmp=0;
while(n>1){
n=n/2;
tmp++;
}
if(tmp%2==0) ans=1;
else ans=2;
}
else{
if(n%2==0) ans=1;
else ans=2;
}
if(ans==1) cout<<"Alice";
else cout<<"Bob";
cout<<"\n";
}
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKI2RlZmluZSBsbCBsb25nIGxvbmcKI2RlZmluZSBpaSBwYWlyPGludCxpbnQ+CiNkZWZpbmUgZmkgZmlyc3QKI2RlZmluZSBzZSBzZWNvbmQKI2RlZmluZSBwYiBwdXNoX2JhY2sKCmludCBtYWluKCl7Cglpb3NfYmFzZTo6c3luY193aXRoX3N0ZGlvKGZhbHNlKTtjaW4udGllKDApO2NvdXQudGllKDApOwoJaW50IG50ZXN0OwoJY2luPj5udGVzdDsKCXdoaWxlKG50ZXN0LS0pewoJCWludCBuOwoJCWNpbj4+bjsKCQlpbnQgYW5zPTA7CgkJaWYobj09MSkgYW5zPTI7CgkJZWxzZSBpZihuJihuLTEpPT0wKXsKCQkJaW50IHRtcD0wOwoJCQl3aGlsZShuPjEpewoJCQkJbj1uLzI7CgkJCQl0bXArKzsKCQkJfQoJCQlpZih0bXAlMj09MCkgYW5zPTE7CgkJCWVsc2UgYW5zPTI7CgkJfQoJCWVsc2V7CgkJCWlmKG4lMj09MCkgYW5zPTE7CgkJCWVsc2UgYW5zPTI7CgkJfQoJCWlmKGFucz09MSkgY291dDw8IkFsaWNlIjsKCQllbHNlIGNvdXQ8PCJCb2IiOwoJCWNvdXQ8PCJcbiI7Cgl9Cn0=