i = gets.chomp.to_i i.times { n = gets.chomp.to_i is_ok = true if n % 8 == 0 print "iki" is_ok = false end if n % 10 == 0 print "sugi" is_ok = false end if is_ok p n / 3 else puts end }