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 curscore, curday = 1, okday[#okday]
for i = #okday - 1, 1, -1 do
  if okday[i] + c < curday then
    curday = okday[i]
    curscore = curscore + 1
  end
  score[i] = curscore
end
local scoreleft = {}
local scoreright = {}
if 0 < #score then
  local maxscore = score[1]
  for i = 1, maxscore do
    scoreleft[i] = 0
    scoreright[i] = 0
  end
  local prvscore = -1
  for i = 1, #score do
    local s = score[i]
    if s ~= prvscore then
      prvscore = s
      scoreleft[s] = i
    end
    scoreright[s] = i
  end
  -- print(table.concat(scoreleft, " "))
  -- print(table.concat(scoreright, " "))
end

local ret = {}
if score[1] == k then
  for iok = #okday, 1, -1 do
    local s = score[iok]
    if scoreleft[s] == scoreright[s] then
      table.insert(ret, okday[iok])
    elseif s < k then
      local idx = scoreleft[s + 1]
      local prvday = okday[idx]
      local idx2 = scoreright[s]
      if idx2 == iok and okday[idx2 - 1] <=prvday + c then
        table.insert(ret, okday[iok])
      end
    end
  end
end
table.sort(ret)
print(table.concat(ret, "\n"))
