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