program E
    implicit none
    integer::N, K, C, i, j, l, m, p, q
    integer, allocatable::v(:), u(:)
    character(len=200005)::S
    read(*,*) N, K, C
    read(*,*) S
    allocate(v(K))
    allocate(u(K))
    l = -200005
    m = 200005
    j = 1
    p = 1

    do i = 1, N
        q = N - i + 1
        if(S(i:i) == "o" .and. i - l > C) then
            v(j) = i
            l = i
            j = j+1
        end if
        if(j > K) then
            exit
        end if
    end do

    do i = 1, N
        q = N - i + 1
        if(S(q:q) == "o" .and. m - q > C) then
            u(p) = q
            m = q
            p = p+1
        end if
        if(p > K) then
            exit
        end if
    end do

    do i = 1, K
        if(v(i) == u(K-i+1)) then
            write(*,*) v(i)
        end if
    end do
    stop
end program E