N, D = map(int, input().split()) b = "B"*(max(0, D-N)) a = "A"*(D if D <= N else 2*N-D) s = a+b print(s+"C"*(N-len(s)))