x;main(i){for(;~scanf("%d",&x);)--i&&printf(x%8?x%10?"%d":0:"iki",x/3)+puts(x%10?"":"sugi");}