def solve(): T = int(input().strip()) for _ in range(T): N = int(input().strip()) S = 'ABC' * N print(S) solve()