#include<iostream> using namespace std; int T; main() { cin>>T; for(;T--;) { int N;cin>>N; int n=N%21; string S=""; for(int t=0;t<N/21;t++)S+="ACCACCCCCCCCABACAAFFE"; if(n==0) { cout<<S<<endl; } else if(n==5) { cout<<"AEECC"<<S<<endl; } else if(n==10) { cout<<"BBCCCFACAC"<<S<<endl; } else { cout<<-1<<endl; } } }