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