#include using namespace std; int T, N[109]; int main() { cin >> T; for (int i = 1; i <= T; i++) cin >> N[i]; for (int i = 1; i <= T; i++) { string ans = "ABACBC"; for (int j = 1; j <= N[i] - 2; j++) ans += "ABC"; cout << ans << endl; } return 0; }