#include #define rep(i, n) for (ll i = 0; i < n; ++i) typedef long long ll; using namespace std; const int INF = 1e9; int main() { int n; cin >> n; rep(i, n) { int a; cin >> a; if (a % 80 == 0) cout << "ikisugi"; else if (a % 10 == 0) cout << "sugi"; else if (a % 8 == 0) cout << "iki"; else cout << a / 3; cout << endl; } return 0; }