n, d = gets.split.map(&:to_i) c2 = [d - n, 0].max d -= 2 * c2 n -= c2 c1 = d c0 = n - d puts "A" * c1 + "B" * c2 + "C" * c0