#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int T; cin >> T; rep(i, T) { int N; cin >> N; string S = "ABACBC"; rep(j, N-2) S += "ABC"; cout << S << endl; } return 0; }