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