n = int(input()) a = list(map(int, input().split())) prev_grundy = 0 total_xor = 0 for num in reversed(a): current_grundy = num ^ prev_grundy total_xor ^= current_grundy prev_grundy = current_grundy print("Alice" if total_xor != 0 else "Bob")