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