import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); StringBuilder sb = new StringBuilder(); for (int i = 0; i < n; i++) { int x = sc.nextInt(); if (x % 40 == 0) { sb.append("ikisugi"); } else if (x % 10 == 0) { sb.append("sugi"); } else if (x % 8 == 0) { sb.append("iki"); } else { sb.append(x / 3); } sb.append("\n"); } System.out.print(sb); } }