# from icecream import ic def main(): I=int(input()) for i in range(I): n=int(input()) f=False if n%8==0: print("iki",end="") f=True if n%10==0: print("sugi",end="") f=True if not f: print(n//3,end="") print("") if __name__=="__main__": main()