#include #include using namespace std; const int o=1e6; int n,K,pth[o],cnt,nxt[o];bool vis[o]; void dfs(int nw){ if(vis[nw]) return; vis[nw]=1;dfs(nw*2%(1<=n){ for(int j=K;j+1;--j) putchar(97+((nxt[i]>>j)&1)); for(int j=K+2,t=nxt[nxt[i]];j<=n;++j,t=nxt[t]) putchar(97+(t&1)); cout << '\n'; break; } } } int main(){ int t; scanf("%d", &t); while (t--) solve(); return 0; }