#include #define rep(i,a,b) for(int i=a;i<(b);i++) #define erep(i,a,b) for(int i=a;i<=(int)(b);i++) #define per(i,a,b) for(int i=(b)-1;i>(a);i--) #define eper(i,a,b) for(int i=((int)(a));i>=b;i--) #define pb push_back #define mp make_pair using namespace std; typedef long long ll; const ll INF=100000000000000LL; const int MOD=1000000007; int dy[]={0, 0, 1, -1}; int dx[]={1, -1, 0, 0}; int gcd(int a,int b){return b?gcd(b,a%b):a;} int n; int main() { ios::sync_with_stdio ( false ); cin.tie ( 0 ); cin >> n; rep(i, 0, n) { int a; cin >> a; if (a % 10 == 0) { if (a % 8 == 0) cout << "ikisugi" << endl; else cout << "sugi" << endl; } else { if (a % 8 == 0) cout << "iki" << endl; else if (a % 3 == 0) cout << a / 3 << endl; } } return 0; }