gets.chomp.to_i.times do v = gets.chomp.to_i if v % 8 == 0 and v % 10 == 0 puts "ikisugi" elsif v % 10 == 0 puts "sugi" elsif v % 8 == 0 puts "iki" else puts v / 3 end end