#yuki_501 n,d=map(int,raw_input().split()) if n>=d: print 'A'*d+'C'*(n-d) else: print 'A'*(n*2-d)+'B'*(d-n)