#include using namespace std; int main() { int N; cin >> N; vector A(N); for (auto&& a : A) { cin >> a; } bool maine = true; int cnt = 0; for (int i = A.size() - 1; i >= 0; i--) { if (A[i] == 1) { maine ^= 1; cnt++; } else break; } if (cnt == A.size()) maine ^= 1; cout << (maine ? "Alice" : "Bob") << endl; }