using System; using System.Collections.Generic; using System.Linq; class Program { public void Solve() { int i = int.Parse(Console.ReadLine()); List N = new List(); for (int idx = 0; idx < i; idx++) { N.Add(int.Parse(Console.ReadLine())); } foreach (var n in N) { if (n % 8 == 0 && n % 10 == 0) { Console.WriteLine("ikisugi"); } else if (n % 8 == 0) { Console.WriteLine("iki"); } else if (n % 10 == 0) { Console.WriteLine("sugi"); } else { Console.WriteLine(n / 3); } } } static void Main() { var solver = new Program(); solver.Solve(); } }