n = int(input())
a = list(map(int, input().split()))
ans = 0
while len(a) > 0:
    if a[-1] > 1:
        break
    ans ^= 1
    a.pop()
else:
    ans ^= 1
if ans:
    print('Bob')
else:
    print('Alice')