#define _USE_MATH_DEFINES #include "bits/stdc++.h" using namespace std; #define FOR(i,j,k) for(int (i)=(j);(i)<(int)(k);++(i)) #define rep(i,j) FOR(i,0,j) #define each(x,y) for(auto &(x):(y)) #define mp make_pair #define MT make_tuple #define all(x) (x).begin(),(x).end() #define debug(x) cout<<#x<<": "<<(x)< >(b,vector(c,d)) #define vvv(a,b,c,d,e) vector > >(b,vv(a,c,d,e)) using ll = long long; using pii = pair; using vi = vector; using vll = vector; int main() { int t; cin >> t; while (t--) { int n; scanf("%d", &n); if (n % 40 == 0) { puts("ikisugi"); } else if (n % 10 == 0) { puts("sugi"); } else if (n % 8 == 0) { puts("iki"); } else { printf("%d\n", n / 3); } } }