I = gets.to_i N = I.times.map { gets.to_i } N.each do |n| if n % 80 == 0 puts 'ikisugi' elsif n % 10 == 0 puts 'sugi' elsif n % 8 == 0 puts 'iki' else puts n / 3 end end