using System; using System.Linq; class J { static int[] Read() => Array.ConvertAll(Console.ReadLine().Split(), int.Parse); static (int, int) Read2() { var a = Read(); return (a[0], a[1]); } static void Main() { var (n, k) = Read2(); var s = "x" + Console.ReadLine(); var u = s.Select(c => c == 'o').ToArray(); for (int i = n - 1; i >= 0; i--) { if (!u[i]) continue; for (int j = Math.Max(0, i - k); j < i; j++) u[j] = false; i -= k; } var r = Enumerable.Range(1, k).Where(i => u[i]).ToArray(); if (r.Any()) Console.WriteLine(string.Join("\n", r)); else Console.WriteLine(0); } }