import collections N = int(input()) A = list(map(int, input().split())) D = collections.deque(A) aliceWin = True while len(D) and D[0]==1: D.popleft() aliceWin = not aliceWin if len(D)==0: if aliceWin: print('Alice') else: print('Bob') aliceWin = True A = list(D) for i in reversed(range(len(A))): if A[i]==1: aliceWin = not aliceWin if aliceWin: print('Alice') else: print('Bob')