#include using namespace std; int n; int main() { // your code goes here int t; cin >> t; while(t--){ cin >> n; bool b[n+1] = {0}; int c=0; for(int i=2;i<=n;i++){ if(b[i] == 0){ c++; for(int j=i+i;j<=n;j+=i){ b[j] = 1; } } } if(c%2==0)cout << "Bob" << endl; else cout <<"Alice" <