program yutori
  implicit none
  integer :: n, k, c, i, j, l(200000) = 0, r(200000) = 0, v = 0
  character(200000) :: s
  read(*,*) n, k, c
  read(*,*) s
  j = 1
  do i = 1, n
    if (s(i:i) == "x" .or. v > 0) then
      v = v-1
    else
      l(j) = i
      j = j+1
      if (j > k) exit
      v = c
    end if
  end do
  v = 0
  j = k
  do i = n, 1, -1
    if (s(i:i) == "x" .or. v > 0) then
      v = v-1
    else
      r(j) = i
      j = j-1
      if (j < 1) exit
      v = c
    end if
  end do
  do i = 1, k
    if (l(i) == r(i)) write(*,'(i0)') l(i)
  end do
end program yutori