import java.util.Scanner; public class Main{ public static void main(String[] args) { Main main=new Main(); main.run(); } void run() { Scanner sc=new Scanner(System.in); int N=sc.nextInt(); for (int i = 0; i < N; i++) { int buf=sc.nextInt(); if(buf%80==0) { System.out.println("ikisugi"); }else if(buf%8==0) { System.out.println("iki"); }else if(buf%10==0){ System.out.println("sugi"); }else { if(buf%3==0) { System.out.println(buf/3); } } } } }