require "prime" class Integer def grundy Prime.prime_division(self).map(&:last).map{|v|v%3}.inject(:^) end end n = gets.to_i a = gets.split.map(&:to_i) ans = a.map(&:grundy).inject(:^) puts ans == 0 ? "Bob" : "Alice"