I = int(input()) for _ in range(I): N = int(input()) if N%40==0: print("ikisugi") elif N%8==0: print("iki") elif N%10==0: print("sugi") else: print(N//3)