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