import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines _, *A = map(int,read().split()) def f(n): bl8 = (n % 8 == 0) bl10 = (n % 10 == 0) if bl8 and bl10: return 'ikisugi' if bl8: return 'iki' if bl10: return 'sugi' return str(n // 3) print('\n'.join(map(f,A)))