#include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int t, n; cin >> t; for (int i = 1; i <= t; i++) { cin >> n; cout << "ABAC"; for (int j = 1; j <= n - 2; j++) cout << "ABC"; cout << "BC"; if (i != t) cout << '\n'; } return 0; }