#include using namespace std; #define lli long long int #define li long int int main() { int cnt, n; int l, fnd, tc; cin >> tc; for(int k = 0; k < tc; k++) { cin >> n; cnt = 0; if(n >= 2) { cnt = 1; } for(int i = 3; i <= n; i += 2) { l = sqrt(i); fnd = -1; for(int j = 3; j < l; j += 2) { if(i % j == 0) { fnd = 1; break; } } if(fnd != 1) { cnt++; } } if(cnt % 2 == 1) { cout << "Alice" << endl; } else { cout << "Bob" << endl; } } return 0; }