def ascan; gets.split.map(&:to_i); end def scan; gets.to_i; end require 'prime' gets; aa = ascan pp = aa.map{|e| Prime.prime_division(e).map{|x,c|[x]*c}.flatten!} nn = pp.map(&:size) g = nn.reduce(0){|s,e| s^(e%3)} puts g==0 ? "Bob" : "Alice"