#include typedef long long ll; using namespace std; int INF = 1LL << 30; int MOD = 1e9+7; main(){ int N; cin >> N; for(int i = 0;i < N;i++){ int a; cin >> a; if(a % 40 == 0)cout << "ikisugi" << endl; else if(a % 10 == 0)cout << "sugi" << endl; else if(a % 8 == 0)cout << "iki" << endl; else cout << a / 3 << endl; } }