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