atcoder#ABC161E. [ABC161E] Yutori

[ABC161E] Yutori

Score : 500500 points

Problem Statement

Takahashi has decided to work on KK days of his choice from the NN days starting with tomorrow.

You are given an integer CC and a string SS. Takahashi will choose his workdays as follows:

  • After working for a day, he will refrain from working on the subsequent CC days.
  • If the ii-th character of SS is x, he will not work on Day ii, where Day 11 is tomorrow, Day 22 is the day after tomorrow, and so on.

Find all days on which Takahashi is bound to work.

Constraints

  • 1N2×1051 \leq N \leq 2 \times 10^5
  • 1KN1 \leq K \leq N
  • 0CN0 \leq C \leq N
  • The length of SS is NN.
  • Each character of SS is o or x.
  • Takahashi can choose his workdays so that the conditions in Problem Statement are satisfied.

Input

Input is given from Standard Input in the following format:

NN KK CC

SS

Output

Print all days on which Takahashi is bound to work in ascending order, one per line.

11 3 2
ooxxxoxxxoo
6

Takahashi is going to work on 33 days out of the 1111 days. After working for a day, he will refrain from working on the subsequent 22 days.

There are four possible choices for his workdays: Day 1,6,101,6,10, Day 1,6,111,6,11, Day 2,6,102,6,10, and Day 2,6,112,6,11.

Thus, he is bound to work on Day 66.

5 2 3
ooxoo
1
5

There is only one possible choice for his workdays: Day 1,51,5.

5 1 0
ooooo

There may be no days on which he is bound to work.

16 4 3
ooxxoxoxxxoxoxxo
11
16