import sys readline=sys.stdin.readline for _ in range(int(readline())): N=int(readline()) if N%40==0: ans="ikisugi" elif N%8==0: ans="iki" elif N%10==0: ans="sugi" else: ans=N//3 print(ans)