t = int(input()) for _ in range(t): n = int(input()) result = 'ABA' * n + 'CBC' print(result)