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