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