import sys input = sys.stdin.readline n = int(input()) for i in range(n): a = int(input()) if a % 40 == 0: print('ikisugi') elif a % 10 == 0: print('sugi') elif a % 8 == 0: print('iki') else: print(a // 3)