i = gets.to_i i.times do 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 end