# coding: utf-8 inpt = input() x = inpt.split(" ") N = x[0] D = x[1] N = int(N) D = int(D) alfabetArr = ["A","B","C"] def generateAns(N, D): if N < D: numB = D - N numA = N - numB numC = 0 elif N == D: numA = N numB = 0 numC = 0 else: numA = N - D numC = N - numA numB = 0 answer = "" for i in range(numA): answer += str(alfabetArr[0]) for j in range(numB): answer += str(alfabetArr[1]) for k in range(numC): answer += str(alfabetArr[2]) return answer print(generateAns(N, D))