#include <bits/stdc++.h>
using namespace std;
#define debug(a) cerr << #a << " = " << (a) << nl;
#define ll long long
#define int long long
#define nl '\n'
void jAVA()
{
int n; cin >> n;
int l = 1;
int r = 1e9;
int ans = 0;
while(l<=r) {
int m = (l+r)/2; m++;
if((m*m+m)/2-1 <= n) {
ans = (m*m+m)/2-1;
l = m;
}
else r = m-2;
}
if(ans == n) cout << "b\n";
else cout << "a\n";
}
int32_t main()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr); cout.tie(nullptr);
int t = 1, cs = 0;
cin >> t;
while (t--){
// cout << "Case " << ++cs << ": ";
jAVA();
}
return 0;
}