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