def solve(): N = int(input()) print("ABACBC" + "ABC"*(N-2)) T = int(input()) for i in range(T): solve()