#include using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } string ans_5 = "ABDCC"; string ans_10 = "BBCCCFACAC"; string ans_21 = "ACCACCCCCCCCABACAAFFE"; void solve() { int n; cin >> n; if (n % 21 == 5) { cout << ans_5; for (int i = 0; i < n / 21; i++) { cout << ans_21; } cout << endl; } else if (n % 21 == 10) { cout << ans_10; for (int i = 0; i < n / 21; i++) { cout << ans_21; } cout << endl; } else if (n % 21 == 0) { for (int i = 0; i < n / 21; i++) { cout << ans_21; } cout << endl; } else { cout << -1 << endl; } } int main() { fast_io(); int t; cin >> t; for (; t--;) { solve(); } }