n,d = gets.split.map(&:to_i) if n < d puts 'A' * (2*n-d) + 'B' * (d-n) else puts 'A' * d + 'C' * (n-d) end