#include using namespace std; using ll = long long int; using ld = long double; #define pow(n,m) powl(n,m) #define sqrt(n) sqrtl(n) const ll MAX = 1000000000000000000; const ll MOD = 1000000007; //998244353; void randinit(){srand((unsigned)time(NULL));} int main(){ ll N; cin >> N; vector A(0); for(ll i = 0;i < N;i++){ ll a; cin >> a; A.emplace_back(a); if(A.size() >= 2 && A[A.size() - 1] == 1 && A[A.size() - 2] == 1){ A.pop_back(); A.pop_back(); } } if(A.size() == 0) cout << "Bob" << endl; else if(A.size() == 1) cout << "Alice" << endl; else{ if(A[A.size() - 1] == 1) cout << "Bob" << endl; else cout << "Alice" << endl; } }