fn main() { let stdin = std::io::read_to_string(std::io::stdin()).unwrap(); let mut stdin = stdin.split_ascii_whitespace(); let i: usize = stdin.next().unwrap().parse().unwrap(); let n: Vec = (0..i) .map(|_| stdin.next().unwrap().parse().unwrap()) .collect(); use std::io::Write; std::io::stdout() .write_all(output(solve(n)).as_bytes()) .unwrap(); } fn solve(n: Vec) -> Vec { n.into_iter() .map(|n| match n % 40 { 0 => String::from("ikisugi"), 8 | 16 | 24 | 32 => String::from("iki"), 10 | 20 | 30 => String::from("sugi"), _ => (n / 3).to_string(), }) .collect() } fn output(ans: Vec) -> String { ans.join("\n") + "\n" }