#include<bits/stdc++.h>
#define ll long long
#define nl '\n'
#define F first
#define S second
#define pb push_back
#define all(a) (a.begin()),(a.end())
#define Input freopen("in.txt","r",stdin)
#define Output freopen("out.txt","w",stdout)
#define PI 2*acos(0.0)
#define MOD 1000000007
using namespace std;
const int N = 2e5 + 5;
void Solve()
{
ll k;
cin >> k;
ll lo = 0, hi = 1e9, mid, res = 0;
while (lo <= hi)
{
mid = (lo + hi) / 2LL;
ll tot = (mid * (mid + 1)) / 2LL;
tot += mid;
if (tot <= k) {
res = tot;
lo = mid + 1;
}
else
hi = mid - 1;
}
if (res == k) {
cout << 'b' << nl;
return ;
}
cout << 'a' << nl;
}
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
int t, T = 1;
cin >> T;
for (t = 1; t <= T; t++)
Solve();
return 0;
}