N = gets.to_i C = gets.split.map &:to_i puts C.map{|n|[n,2].min}.sum.odd? ? :A : :B