#include using namespace std; int main(){ int t; cin>>t; while(t--){ int n; cin>>n; vectorv(n); for(int i=0;i>v[i]; bool ok=0; if(n%2)ok=1; else{ if(count(v.begin(),v.end(),1)==0||count(v.begin(),v.end(),1)==n){ ok=1; } } cout<<(ok?"Alice":"Bob")<