#include #include using namespace std; int main() { int t; cin >> t; for (int i = 0; i < t; ++i) { int n; cin >> n; string s = "ABACBC" + string("ABC").substr(0, n - 2); cout << s << endl; } return 0; }