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