N, K, C = list(map(int, input().split()))

S = eval(input())



ls = []

nex = -1

for i in range(N):

    if S[i] == "o" and i > nex:

        ls.append(i + 1)

        nex = i + C

        

    if len(ls) == K:

        break



rs = []

nex = N

for i in reversed(list(range(N))):

    if S[i] == "o" and i < nex:

        rs.append(i + 1)

        nex = i - C

        

    if len(rs) == K:

        break

        

for l, r in zip(ls, rs[::-1]):

    if l == r:

        print(l)

N, K, C = list(map(int, input().split()))

S = eval(input())



cand_l = []

cnt = 0

rest = 0

for i in range(N):

    if S[i] == "o" and rest <= 0 and cnt < K:

        cand_l.append(i + 1)

        rest = C

        cnt += 1

    else:

        rest -= 1



cand_r = []

cnt = 0

rest = 0

for i in reversed(list(range(N))):

    if S[i] == "o" and rest <= 0 and cnt < K:

        cand_r.append(i + 1)

        rest = C

        cnt += 1

    else:

        rest -= 1



for l, r in zip(cand_l, cand_r[::-1]):

    if l == r:

        print(l)

N, K, C = list(map(int, input().split()))
S = eval(input())
ls = []
nex = -1
for i in range(N):
    if S[i] == "o" and i > nex:
        ls.append(i + 1)
        nex = i + C
    if len(ls) == K:
        break
rs = []
nex = N
for i in reversed(list(range(N))):
    if S[i] == "o" and i < nex:
        rs.append(i + 1)
        nex = i - C
    if len(rs) == K:
        break
for l, r in zip(ls, rs[::-1]):
    if l == r:
        print(l)

N, K, C = list(map(int, input().split()))
S = eval(input())
cand_l = []
cnt = 0
rest = 0
for i in range(N):
    if S[i] == "o" and rest <= 0 and cnt < K:
        cand_l.append(i + 1)
        rest = C
        cnt += 1
    else:
        rest -= 1
cand_r = []
cnt = 0
rest = 0
for i in reversed(list(range(N))):
    if S[i] == "o" and rest <= 0 and cnt < K:
        cand_r.append(i + 1)
        rest = C
        cnt += 1
    else:
        rest -= 1
for l, r in zip(cand_l, cand_r[::-1]):
    if l == r:
        print(l)

-ls = [] -nex = -1 +cand_l = [] +cnt = 0 +rest = 0 -    if S[i] == "o" and i > nex: -        ls.append(i + 1) -        nex = i + C -    if len(ls) == K: -        break -rs = [] -nex = N +    if S[i] == "o" and rest <= 0 and cnt < K: +        cand_l.append(i + 1) +        rest = C +        cnt += 1 +    else: +        rest -= 1 +cand_r = [] +cnt = 0 +rest = 0 -    if S[i] == "o" and i < nex: -        rs.append(i + 1) -        nex = i - C -    if len(rs) == K: -        break -for l, r in zip(ls, rs[::-1]): +    if S[i] == "o" and rest <= 0 and cnt < K: +        cand_r.append(i + 1) +        rest = C +        cnt += 1 +    else: +        rest -= 1 +for l, r in zip(cand_l, cand_r[::-1]):