#include "bits/stdc++.h" using namespace std; typedef long long ll; #define rep(i,n) for(int i=0;i<(int)(n);i++) int gcd(int a,int b){return b?gcd(b,a%b):a;} int main() { cin.tie(0); ios::sync_with_stdio(false); int i,n[5]; cin >> i; rep(j,i) cin >> n[j]; rep(j,i) { if (n[j]%40==0) { cout << "ikisugi" << endl; } else if (n[j]%10==0) { cout << "sugi" << endl; } else if (n[j]%8==0) { cout << "iki" << endl; } else { cout << n[j]/3 << endl; } } return 0; }