N, D = gets.split.map(&:to_i) b = [D/2,[D - N,0].max].min puts 'A' * (D - 2 * b) + 'B' * b + 'C' * (N - D + b)