N, *L = map(int, open(0)) for n in L: print([n//3, 'iki', 'sugi', 'ikisugi'][(n%8==0) + (n%10==0)*2])