#include using namespace std; // Thuật toán Grundy giữ nguyên vì đã chính xác 100% long long get_grundy(long long x) { while (x % 2 == 1) { x /= 2; } return x / 2; } int main() { // Tối ưu I/O ios_base::sync_with_stdio(false); cin.tie(NULL); int n; if (cin >> n) { long long xor_sum = 0; for (int i = 0; i < n; ++i) { long long a; cin >> a; xor_sum ^= get_grundy(a); } // Yukicoder yêu cầu in Alice / Bob if (xor_sum != 0) { cout << "Alice\n"; } else { cout << "Bob\n"; } } return 0; }