using System; class Program { static void Main() { var a = int.Parse(Console.ReadLine()); while (a-- > 0) { var n = int.Parse(Console.ReadLine()); if (n % 80 == 0) Console.WriteLine("ikisugi"); else if (n % 10 == 0) Console.WriteLine("sugi"); else if (n % 8 == 0) Console.WriteLine("iki"); else Console.WriteLine(n / 3); } } }