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