for _ in range(int(input())): N = int(input()) if N % 40 == 0: print('ikisugi') elif N % 10 == 0: print('sugi') elif N % 8 == 0: print('iki') else: print(N // 3)