#include using namespace std; template T gcd(T x, T y) { if (y == 0) return x; return gcd(y, x % y); } template T lcm(T x, T y) { if (x == 0 || y == 0) return 0; return x / gcd(x, y) * y; } int main() { int N; cin >> N; for (int i = 0; i < N; i++) { 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; } }