use std::io::{stdin, Read}; fn main() { let mut buf = String::new(); stdin().read_to_string(&mut buf).unwrap(); let mut buf = buf.split_whitespace(); let mut get = || buf.next().unwrap().parse::().unwrap(); let n = get(); for _ in 0..n { match get() { x if x % 8 == 0 && x % 10 == 0 => println!("ikisugi"), x if x % 8 == 0 => println!("iki"), x if x % 10 == 0 => println!("sugi"), x => println!("{}", x / 3), } } }