#include using namespace std; using ll = long long; [[maybe_unused]] constexpr ll INF = (1LL << 60) - 1; void solve() { ll n; cin >> n; bool f = __builtin_popcountll(n + 1) > 1; cout << (f ? "Alice\n" : "Bob\n"); } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll t = 1; cin >> t; while (t--) { solve(); } return 0; }