n = io.read("*n") for i = 1, n, 1 do k = io.read("*n") if(k % 8 == 0) then io.write("iki") end if(k % 10 == 0) then io.write("sugi") end if(k % 8 ~= 0 and k % 10 ~= 0 and k % 3 == 0) then io.write(k / 3) end io.write("\n") end