#include using namespace std; int main() { cin.sync_with_stdio(0), cin.tie(0), cout.tie(0); int a; int n[10]; cin >> a; for (int i = 0; i < a; i++) { cin >> n[i]; } for (int i = 0; i < a; i++) { if (n[i] % 8 == 0 && n[i] % 10 == 0) { cout << "ikisugi" << endl; } else if (n[i] % 8 == 0) { cout << "iki" << endl; } else if (n[i] % 10 == 0) { cout << "sugi" << endl; } else if (n[i] % 3 == 0) { cout << n[i] / 3 << endl; } } }