size = gets.to_i check = [] size.times do |i| check[i] = gets.to_i end check.each do |c| print 'iki' if c % 8 == 0 if c % 10 == 0 print 'sugi' else print c / 3 if c % 3 == 0 end puts end