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