# 想定解 t = int(input()) for _ in range(t): n = int(input()) assert 2 <= n and n <= 100 s = "ABACBC" + "ABC" * (n - 2) print(s)