local n, k, c = io.read("*n", "*n", "*n", "*l")
local s = io.read()
local t = {}
local okday = {}
for i = 1, n do
  t[i] = s:sub(i, i) == "o"
  if t[i] then
    table.insert(okday, i)
  end
end
local score = {}
for i = 1, #okday do
  score[i] = 1
end
local dayleft, dayright = {}, {}
for i = 1, k do
  dayleft[i], dayright[i] = 0, 0
end
local curscore, curday = 1, okday[1]
dayleft[1] = 1
for i = 2, #okday do
  if curday + c < okday[i] then
    curscore = curscore + 1
    if curscore == k + 1 then break end
    dayleft[curscore] = okday[i]
    curday = okday[i]
  end
end

curscore, curday = k, okday[#okday]
dayright[k] = curday
for i = #okday - 1, 1, -1 do
  if okday[i] + c < curday then
    curscore = curscore - 1
    if curscore == 0 then break end
    dayright[curscore] = okday[i]
    curday = okday[i]
  end
end
for i = 1, k do
  if 0 < dayleft[i] * dayright[i]
  and dayleft[i] == dayright[i] then
    print(dayleft[i])
  end
end
