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