#include void solve() { const std::string s = "ABACBC"; const std::string t = "ABC"; int n; std::cin >> n; std::string ans; ans += s; for (int i = 0; i + 2 < n; i++) ans += t; std::cout << ans << '\n'; } int main() { std::cin.tie(0)->sync_with_stdio(0); std::cout << std::fixed << std::setprecision(16); int t = 1; std::cin >> t; while (t--) solve(); }