n = int(input()) A = list(map(int, input().split())) i = 0 while A and A[-1] == 1: A.pop() i += 1 if A: if i%2 == 0: print('Alice') else: print('Bob') else: if i%2 == 1: print('Alice') else: print('Bob')