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