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