#include using namespace std; using ll=long long; #include using namespace atcoder; using mint=modint998244353; map ISW; bool W(ll N){ if(N==1)return 0; if(ISW.count(N))return ISW[N]; for(int i=1;i<=N/2;i++){ if(!W(N-i)){ ISW[N]=1; return 1; } } ISW[N]=0; return 0; } void solve(){ ll N; cin>>N; cout<<(__builtin_popcountll(N+1)==1?"Bob\n":"Alice\n"); } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int T; cin>>T; while(T--)solve(); }