import sequtils,math,tables template times*(n:int,body) = (for _ in 0.." .} proc scan(): int = while true: let k = getchar_unlocked() if k < '0': return result = 10 * result + k.ord - '0'.ord let n = scan() let M = newSeqWith(n,factors[scan()]) var ans = 0 for m in M: for mm in m: ans = ans xor (mm mod 3) if ans != 0 : echo "Alice" else: echo "Bob"