N,D=map(int,input().split()) if D<=N: print("A"*D+"C"*(N-D)) else: x=D-N print("A"*(N-x)+"B"*x)