#include using namespace std; #define i64 long long #define rep(i,s,e) for(int (i) = (s);(i) <= (e);(i)++) int main(){ int N; cin >> N; string s[] = {"","iki","sugi","ikisugi"}; rep(i,0,N - 1){ int a; cin >> a; int b = (a % 8 == 0) | ((a % 10 == 0) << 1); if(b == 0){ cout << a / 3 << endl; } else{ cout << s[b] << endl; } } }