n,d=map(int,input().split());a="" while d/20:a+="A";d-=1 a+="B"*(d//2) print(a+"C"*(n-len(a)))