for _ in range(int(input())): q, r = divmod(int(input()), 2) print("ABACBC"*q + "ABC"*r)