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