i = int(input()) n = list() for j in range(i): n.append(int(input())) for m in n: if m % 80 == 0 : print("ikisugi") elif m % 8 == 0: print("iki") elif m % 10 == 0: print("sugi") else: print(int(m/3))