fun main() {
    val builder = StringBuilder()

    val min = -3_000_000

    val (n, k, c) = readInputLine().split(" ").map { it.toInt() }

    val s = readInputLine().toCharArray()

    var prev = min
    var cnt = 0

    val front = IntArray(k)

    for ((i, work) in s.withIndex()) {
        if (work == 'o' && i - prev > c) {
            prev = i
            front[cnt] = i + 1
            cnt++
            if (cnt == k) {
                break
            }
        }
    }

    prev = min
    cnt = 0

    val back = IntArray(k)

    for ((i, work) in s.reversed().withIndex()) {
        if (work == 'o' && i - prev > c) {
            prev = i
            back[k - 1 - cnt] = n - i
            cnt++
            if (cnt == k) {
                break
            }
        }
    }

    for (i in 0 until k) {
        if (front[i] == back[i]) {
            builder.appendln(front[i])
        }
    }

    print(builder.toString())
}

fun readInputLine(): String {
    return readLine()!!
}
