t = int(input()) for _ in range(t): n = int(input()) print("ABACBC" + "ABC" * (n - 2))