import Foundation

let number = readLine()!.componentsSeparatedByString(" ")
let days = [Character](readLine()!.characters)

let N = Int(number[0])!
let K = Int(number[1])!
let C = Int(number[2])!

func greedyDays(days: [Character], rest: Int, work: Int, isLeft: Bool) -> [Int] {
    var notWork = rest
    var result: [Int] = []
    var i = isLeft ? 0 : days.count - 1
    while (isLeft && i < days.count) || (!isLeft && i >= 0) {
        if result.count == work {
	        break
        }
        if days[i] == "o" && notWork >= rest {
            result.append(i+1)
            notWork = 0
        } else {
            notWork += 1
        }
        i += isLeft ? 1 : -1
    }
    return isLeft ? result : result.reverse()
}

var left: [Int] = greedyDays(days, rest: C, work: K, isLeft: true)
var right: [Int] = greedyDays(days, rest: C, work: K, isLeft: false)

if left.count == K && right.count == K { 
    for i in 0..<left.count {
      if left[i] == right[i] {
        print(left[i])
      }
    }
}