from collections import * N, K = map(int, input().split()) S = [1] + [int(s == "o") for s in input()] + [0] ans = [-1] * (N + 1) ans[-1] = 0 val = 0 Q = deque([0]) for i in range(N - 1, 0, -1): if S[i] == 0: continue if i + K + 1 <= N and S[i]: val -= Q.popleft() if val: ans[i] = 0 else: ans[i] = 1 val += ans[i] Q.append(ans[i]) ans2 = [] for i in range(1, K + 1): if ans[i] == 1: ans2.append(i) if ans2: for a in ans2: print(a) else: print(0)