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