n = int(input()) a = list(map(int, input().split())) a = a[::-1] # Reverse the array to process from end to start grundy_prev = 0 xor_sum = 0 for ai in a: if ai > grundy_prev: current = ai - grundy_prev else: current = 0 xor_sum ^= current grundy_prev = current print("Alice" if xor_sum != 0 else "Bob")