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