import sys input = sys.stdin.readline t=int(input()) for tests in range(t): n=int(input()) if n%8==0 and n%10==0: print("ikisugi") elif n%8==0: print("iki") elif n%10==0: print("sugi") else: print(n//3)