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