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