#include using namespace std; typedef unsigned short usint; typedef unsigned uint; typedef long lint; typedef short sint; typedef unsigned long ulint; typedef unsigned long long ullint; typedef long long llint; #define INF 1000000 #define mp make_pair #define pii pair #define pll pair #define pui pair #define pul pair #define pull pair // inline funkcije bool prost[100002]; int main() { ios_base::sync_with_stdio(0); int g; cin >> g; while (g--) { int n, c = 0; cin >> n; memset(prost, 0, sizeof prost); double kk = sqrt(n+1); if (kk >= n) kk = n-1; for (int t1 = 2; t1 <= kk; ++t1) { if (!prost[t1]) { for (int t2 = 2; t1*t2 <= n; ++t2) prost[t1*t2] = 1; } } for (int t1 = 2; t1 <= n; ++t1) if (!prost[t1]) ++c; if (!c || c % 2 == 0) cout << "Bob\n"; else cout << "Alice\n"; } return 0; }