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