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