#include using namespace std; int main() { int X; cin >> X; while(X--) { int N; cin >> N; if(N % 80 == 0) { cout << "ikisugi" << endl; } else if(N % 10 == 0) { cout << "sugi" << endl; } else if(N % 8 == 0) { cout << "iki" << endl; } else { cout << N / 3 << endl; } } }