gets.to_i.times{ n = gets.to_i if n % 40 == 0 puts "ikisugi" elsif n % 8 == 0 puts "iki" elsif n % 10 == 0 puts "sugi" else puts n / 3 end }