using System; namespace yukicoder { class Program { static void Main(string[] args) { int a = int.Parse(Console.ReadLine()); int[] c = new int[a]; int ans = 0; for(int i = 0; i < a ; i++) { int b = int.Parse(Console.ReadLine()); c[i] = b; } for(int j = 0; j < a ; j++) { if (c[j] % 8 == 0 && c[j] % 10 == 0) { Console.WriteLine("ikisugi"); }else if(c[j] % 8 == 0) { Console.WriteLine("iki"); }else if(c[j] % 10 == 0) { Console.WriteLine("sugi"); }else if (c[j] % 3 == 0) { ans = c[j] / 3; Console.WriteLine(ans); } } } } }