#include <bits/stdc++.h>
using namespace std;
#define ll long long
const ll MOD = 1e9 + 7;
const double PI = 3.14159265358979323846;

signed main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    ll t = 1, n, m, k, a, b, c, d, e, f, w, h, x1, x2, y2, l, r, y, z, q;
    string s;
    char x;
    cin >> t;
    while (t--) {
        cin >> n;
        s = "";
        x = 'a';
        while (n) {
            c = 1;
            while ((c + 1) * (c + 2) / 2 <= n) c++;
            s += string(c, x);
            n -= c * (c + 1) / 2;
            x++;
            if (x > 'z') x = 'a';
        }
        cout << s << '\n';
    }

    return 0;
}