#include using namespace std; int main() { int q, n; cin >> q; while (q--) { cin >> n; if (n % 8 == 0 and n % 10 == 0) { cout << "ikisugi" << endl; } else if (n % 8 == 0) { cout << "iki" << endl; } else if (n % 10 == 0) { cout << "sugi" << endl; } else { cout << n / 3 << endl; } } return 0; }