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