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