gets.to_i.times{a=gets.to_i;puts (a%8==0)? (a%10==0)? "ikisugi": "iki": (a%10==0)? "sugi": a/3}