N = int(input()) ll = list(map(int,input().split())) ans = 0 while ll[-1] == 1: ll.pop() ans ^= 1 print('Alice' if ans == 0 else 'Bob')