i=int(input()) N=[int(input()) for n in range(i)] for a in N: print([a//3,'iki','sugi','ikisugi'][(a%8==0)+(a%10==0)*2])