import sys import math from math import sin, cos, tan from functools import reduce from collections import deque import heapq sys.setrecursionlimit(1000000) intm1 = lambda x:int(x)-1 N = int(input()) alice = True for a in reversed(input().split()): if a != '1': alice = not alice print('Alice' if alice else 'Bob')