N, *A = map(int, open(0).read().split()) for a in A: if a % 80 == 0: print("ikisugi") elif a % 8 == 0: print("iki") elif a % 10 == 0: print("sugi") elif a % 3 == 0: print(a // 3)