#include using namespace std; int main() { int n; cin >> n; for (int i = 0; i < n; i++) { int x; cin >> x; if (!(x % 8) && !(x % 10)) { cout << "ikisugi" << endl; } else if (!(x % 8)) { cout << "iki" << endl; } else if (!(x % 10)) { cout << "sugi" << endl; } else { cout << x / 3 << endl; } } }