#include using namespace std; int main() { int T; cin >> T; while (T--) { int n; cin >> n; for (int i = 0; i < n / 2; i++) cout << "ABC"; cout << "ABACBC"; for (int i = 0; i < (n + 1) / 2; i++) cout << "ABC"; cout << endl; } return 0; }