#include #include #include #include #include #define all(x) x.begin(),x.end() #define pb push_back #define ll long long #define P pair #define LP pair using namespace std; int main() { ll n; cin >>n; vector a(n); for (int i = 0; i < n; i++) { cin >> a[i]; if (a[i] % 3 == 0 and a[i] % 8 != 0 and a[i] % 10 != 0) cout << a[i] / 3 << endl; else if (a[i] % 8 == 0 and a[i] % 10 != 0) cout << "iki" << endl; else if (a[i] % 8 != 0 and a[i] % 10 == 0) cout << "sugi" << endl; else if (a[i] % 8 == 0 and a[i] % 10 == 0) cout << "ikisugi" << endl; } return 0; }