import sys input = sys.stdin.readline N, K = map(int, input().split()) S = list(input())[: -1] dp = [0] * (N + 1) class BIT: def __init__(self, n): self.n = n self.data = [0] * (n + 1) self.el = [0] * (n + 1) def sum(self, i): s = 0 while i > 0: s += self.data[i] i -= i & -i return s def add(self, i, x): self.el[i] += x while i <= self.n: self.data[i] += x i += i & -i def get(self, i, j = None): if j is None: return self.el[i] return self.sum(j) - self.sum(i) def lowerbound(self, s): x = 0 y = 0 for i in range(self.n.bit_length(), -1, -1): k = x + (1 << i) if k <= self.n and (y + self.data[k] < s): y += self.data[k] x += 1 << i return x + 1 fwk = BIT(N + 1) fwk.add(N, 1) dp[-1] = 1 if S[-1] == "x": dp[-2] = 1 fwk.add(N - 1, 1) for i in range(N - 2, -1, -1): if (i > 0) & (S[i - 1] == "x"): dp[i] = 1 fwk.add(i, 1) #print(i, S[i-1], dp[i]) continue r = min(N, i + K) s = fwk.get(i, r) if s < r - i: dp[i] = 1 if i: fwk.add(i, dp[i]) #print(i, r, s, S[i-1], dp[i]) #print(dp) f = 0 for i in range(1, K + 1): if dp[i] == 0: print(i) f = 1 if f == 0: print(0)