using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static int[] NList => ReadLine().Split().Select(int.Parse).ToArray(); public static void Main() { Solve(); } static void Solve() { var c = NList; var (n, k) = (c[0], c[1]); var s = ReadLine(); var ft = new FenwickTree(n + 1); var ans = new List(); for (var i = n - 1; i > 0; --i) { if (s[i - 1] == 'o') { var count = ft.Sum(Math.Min(n, i + k)); if (count == 0) { ft.Add(i, 1); if (i <= k) ans.Add(i); } } } ans.Reverse(); if (ans.Count == 0) WriteLine(0); else WriteLine(string.Join(" ", ans)); } class FenwickTree { int size; long[] tree; public FenwickTree(int size) { this.size = size; tree = new long[size + 2]; } public void Add(int index, int value) { ++index; for (var x = index; x <= size; x += (x & -x)) tree[x] += value; } /// 先頭からindexまでの和(include index) public long Sum(int index) { if (index < 0) return 0; ++index; var sum = 0L; for (var x = index; x > 0; x -= (x & -x)) sum += tree[x]; return sum; } public long Get(int index) { if (index == 0) return Sum(0); return Sum(index) - Sum(index - 1); } /// Sum(x) >= value となる最小のxを求める // 各要素は非負であること public int LowerBound(long value) { if (value < 0) return -1; var x = 0; var b = 1; while (b * 2 <= size) b <<= 1; for (var k = b; k > 0; k >>= 1) { if (x + k <= size && tree[x + k] < value) { value -= tree[x + k]; x += k; } } return x; } } }