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