t=int(input()) for i in range(t): n=int(input()) if n%2==1: print("ABACBC"*((n-3)//2)+"ABACABCBC") else: print("ABACBC"*(n//2))