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