use std::io::Read; fn main() { let mut s = String::new(); std::io::stdin().read_to_string(&mut s).ok(); s.lines() .skip(1) .flat_map(str::parse) .for_each(|n: usize| println!("ABACBC{}", "ABC".repeat(n - 2))) }