#coding utf-8 N = input() a = [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(a[i] / 3)