import java.io.PrintWriter; import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { new Main().run(); } long MOD = 1_000_000_000 + 7; public void run() { Scanner sc = new Scanner(System.in); long m = sc.nextLong(); for (int i = 0; i < m; ++i) { long n = sc.nextLong(); if (n % 80 == 0) { System.out.println("ikisugi"); } else if (n % 10 == 0) { System.out.println("sugi"); } else if (n % 8 == 0) { System.out.println("iki"); } else { System.out.println(n / 3); } } } static void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }