for _ in[0]*int(input()):s=int(input());a=""if s%8else"iki";a+=""if s%10else"sugi";print(a if a else s//3)