#include #include using namespace std; #define p(x) cout << x << endl; #define el cout << endl; int main(){ cin.tie(0); ios::sync_with_stdio(false); int i; cin >> i; int n[i]; for(int j = 0; j < i; ++j){ cin >> n[j]; } for(int j = 0; j < i; ++j){ if (n[j] % 8 == 0 && n[j] % 10 == 0){ cout << "ikisugi" << endl; }else if(n[j] % 10 == 0){ cout << "sugi" << endl; }else if (n[j] % 8 == 0){ cout << "iki" << endl; }else if (n[j] % 3 == 0){ cout << (n[j] / 3) << endl; } } }