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