#include #include using namespace std; int main() { int kaisu; cin >> kaisu; int su[5]; for (int i = 0; i < kaisu; i++) { cin >> su[i]; } for (int i = 0; i < kaisu; i++) { if (su[i] % 8 == 0 && su[i] % 10 == 0) { cout << "ikisugi" << endl; } else if (su[i] % 8 == 0) { cout << "iki" << endl; } else if (su[i] % 10 == 0) { cout << "sugi" << endl; } else if (su[i] % 3 == 0) { cout << su[i] / 3 << endl; } } return 0; }