N = int(input()) for i in range(N): s = int(input()) if s % 8 == 0 and s % 10 == 0: print('ikisugi') continue if s % 8 == 0: print('iki') continue if s % 10 == 0: print('sugi') continue if s % 3 == 0: print(s // 3) continue