#include using namespace std; using ll = long long; const int mod = 998244353; int N; void solve(){ cin >> N; if(N % 2 == 1){ cout << "ABACABCBC"; N -= 3; } while(N){ cout << "ABACBC"; N -= 2; } cout << endl; } int main(void){ ios::sync_with_stdio(false); cin.tie(nullptr); int t; cin >> t; while(t--)solve(); return 0; }