using System.Text; using System; public class Hello { static void Main() { var T = int.Parse(Console.ReadLine().Trim()); while (T-- > 0) { var n = int.Parse(Console.ReadLine().Trim()); getAns(n); } } static void getAns(int n) { var ans1 = "ABACBC"; if (n == 2) { Console.WriteLine(ans1); return; } var sb = new StringBuilder(); for (int i = 0; i < n - 2; i++) sb.Append("ABC"); Console.Write(ans1); Console.WriteLine(sb); } }