N=gets.to_i N.times{ n=gets.to_i if n%8==0 && n%10==0 puts "ikisugi" elsif n%8==0 puts "iki" elsif n%10==0 puts "sugi" else puts n/3 end }