t = int(input()) for _ in range(t): n = int(input()) s = "CBA" * n print(s)