gets.to_i.times do n = gets.to_i if n % 20 == 0 puts 'ikisugi' elsif n % 10 == 0 puts 'sugi' elsif n % 8 == 0 puts 'iki' else puts n / 3 end end