import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00000661_Main { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws IOException { int n = Integer.parseInt(br.readLine()); String r = ""; for(int i = 0; i < n; i++) { int t = Integer.parseInt(br.readLine()); if(t % 8 == 0 && t % 10 == 0) r += "ikisugi"; else if(t % 10 == 0) r += "sugi"; else if(t % 8 == 0) r += "iki"; else r += String.valueOf(t/3); if (i != n - 1) r += "\r\n"; } System.out.println(r); } }