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