object Main {
  def main(args: Array[String]): Unit = {
    import scala.io.StdIn._
    val Array(n, k, c, _*) = readLine().split(' ').map(_.toInt)
    def check(comb: List[Int], pre: Int): Boolean =
      comb match {
        case Nil => true
        case head :: tail =>
          if (head <= pre + c) false
          else check(tail, head)
      }
    val possibleDate = readLine().zipWithIndex.collect {
      case ('o', i) => i + 1
    }
      .combinations(k)
      .collect {
        case comb if check(comb.toList, -c) =>
          comb.toSet
      }
    if (possibleDate.nonEmpty) {
      val dates = possibleDate.reduce(_ intersect _)
      dates.toList.foreach(println)
    }
  }
}