import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines N,D = map(int,read().split()) if D <= N: answer = 'A' * (N-D) + 'C' * D else: answer = 'A' * (N+N-D) + 'B' * (D-N) print(answer)