n, k = [int(v) for v in input().split(" ")] if 2*n >= k > n: ans = "A"*(2*n-k) + "B"*(k-n) else: ans = "A"*(k) + "C"*(n-k) print(ans)