import sys readline = sys.stdin.readline N = int(readline()) A = list(map(int, readline().split())) al = False for a in A: if a == 1: al ^= 1 else: al = True print("ALice" if al else "Bob")