i=int(input()) n=list(int(j) for j in input().split()) for j in range(n): if n[j]%80==0: print('ikisugi') elif n[j]%8==0: print('iki') elif n[j]%10==0: print('sugi') else: print(n[j]//3)