#include #include using namespace std; using namespace atcoder; #define rep(i,n) for(int i = 0; i < n; i++) #define all(a) a.begin(),a.end() #define SORT(a) sort(all(a)); #define MIN(a) *min_element(all(a)) #define MAX(a) *max_element(all(a)) #define SUM(a) accumulate(all(a),0LL) using ll=long long; using ld=long double; using ull=unsigned long; ll MOD=998244353; ll inf=1e15; using mint = static_modint<998244353>; int main(){ cin.tie(nullptr); cout.tie(nullptr); ios::sync_with_stdio(false); ll T;cin>>T; vectorgrundy(200001); grundy[1]=1; grundy[2]=1; grundy[3]=2; for(ll i=1;i<=2*1e5;i++){ if(i%3==1){grundy[i]=(i/3)*4-2;} else{grundy[i]=((i-1)/3)*4;} } while(T--){ ll n;cin>>n; ll ans=0; rep(i,n){ ll a;cin>>a; ans=ans^grundy[a]; } if(ans!=0)cout<<"Alice"<