# -*- coding: utf-8 -*- i = int(input()) n = [0] * i for j in range(i): n[j] = int(input()) for j in range(i): if n[j] % 80 == 0: n[j] = "ikisugi" elif n[j] % 10 == 0: n[j] = "sugi" elif n[j] % 8 == 0: n[j] = "iki" else: n[j] = int(n[j] / 3) print(n[j])