#yuki661 n=int(raw_input()) l=[] for i in xrange(n): l.append(int(raw_input())) for i in xrange(n): if l[i]%8==0 and l[i]%10==0: print 'ikisugi' elif l[i]%10==0: print 'sugi' elif l[i]%8==0: print 'iki' else: print l[i]/3