N=int(input()) A=list(map(int, input().split())) cnt=0 for i in range(N)[::-1]: if A[i]==1: cnt+=1 else: break if cnt==N: if cnt%2==0: print("Bob") else: print("Alice") else: if cnt%2==0: print("Alice") else: print("Bob")