n,d=[int(i) for i in input().split()] a, c=min(n, 2*n-d), max(0, n-d) a=a-c b=max(0,n-a-c) print("A"*a+"B"*b+"C"*c)