#coding utf-8 N = int(input()) a = [int(input()) for i in range(N)] for i in range(N): if a[i] % 8 == 0: if a[i] % 10 == 0: print("ikisugi") else: print("iki") elif a[i] % 10 == 0: print("sugi") else: print(int(a[i] / 3))