N,D = map(int,input().split()) S = "" cnt_a = 0 cnt_b = 0 cnt_c = 0 if D == 0: S = 'C' * N elif D == 1: S = 'A' + 'C' * (N-1) elif D >= 2: cnt_a = N - (D - N) cnt_b = (D - cnt_a) // 2 cnt_c = N - cnt_a - cnt_b S = 'A'*cnt_a + 'B' * cnt_b + 'C'*cnt_c print(S)