t = int(input()) for _ in range(t): n = int(input()) lisl = ["ABAC"] lisr = ["BC"] lism = [] for i in range(n-2): lism.append("ABC") print("".join(lisl+lism+lisr))