n, d = map(int, input().split()) S = [] for z in range(n+1): x = n-d+z y = d-2*z if x >= 0 and y >= 0: s = 'A'*y+'B'*z+'C'*x S.append(s) S.sort() print(S[0])