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