S = int(input()) lists = [] for i in range(S): x = int(input()) lists.append(x) for j in lists: if j % 80 == 0: print('ikisugi') elif j % 10 == 0: print('sugi') elif j % 8 == 0: print('iki') elif j % 3 == 0: print(int(j/3))