gets.chomp.to_i.times.map { gets.chomp.to_i }.map do case _1 in -> (n) { n % 80 == 0 } then 'ikisugi' in -> (n) { n % 10 == 0 } then 'sugi' in -> (n) { n % 8 == 0 } then 'iki' else _1 / 3 end end.then(&method(:puts))