#include using namespace std; int T,N,A[2<<17]; main() { cin>>T; for(;T--;) { cin>>N; int X=0; for(int i=0;i>A[i],X^=A[i]; if(N%2==1)cout<<"Alice\n"; else cout<<(X==0?"Bob\n":"Alice\n"); } }