N,D = map(int,input().split()) s = "" if N == D: s = "A"*N elif N > D: s = "A"*D s += "C"*(N-D) else: if (D-N)%2 == 0: s = "A"*(2*N-D) s += "B"*(D-N) elif D-N == 1: s = "A"*(N-1) s += "B" else: s = "A"*N s += "B"*((D-N)//2) print(s)