import std.experimental.all; T read(T)() { return readln.chomp.to!T; } T[] reads(T)() { return readln.split.to!(T[]); } alias readint = read!int; alias readints = reads!int; void main() { auto nd = readints; int n = nd[0], d = nd[1]; if (d > n) { int b = d - n; int a = n - b; writeln(repeat('A', a), repeat('B', b)); } else { writeln(repeat('A', d), repeat('C', n - d)); } }