// #define _GLIBCXX_DEBUG #include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) int main() { // Input And Output int i; cin >> i; rep(j, i) { int Ni; cin >> Ni; if (Ni % 8 == 0 && Ni % 10 == 0) cout << "ikisugi" << endl; else if (Ni % 8 == 0 && Ni % 10 != 0) cout << "iki" << endl; else if (Ni % 8 != 0 && Ni % 10 == 0) cout << "sugi" << endl; else cout << Ni / 3 << endl; } }