using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static System.Console;
using static System.Math;

namespace AtTest.ABC_161
{
    class E
    {
        static void Main(string[] args)
        {
            var sw = new System.IO.StreamWriter(OpenStandardOutput()) { AutoFlush = false };
            SetOut(sw);

            Method(args);

            Out.Flush();
        }

        static void Method(string[] args)
        {
            int[] nkc = ReadInts();
            int n = nkc[0];
            int k = nkc[1];
            int c = nkc[2];
            string s = Read();

            int[] fronts = new int[n];
            for(int i = 0; i < n; i++)
            {
                if (s[i] == 'o')
                {
                    fronts[i] = 1;
                    if (i > 0)
                    {
                        fronts[i] += fronts[i - 1];
                    }
                    int to = i + c + 1;
                    for (int j = i + 1; j < Min(to, n); j++)
                    {
                        fronts[j] = fronts[j - 1];
                    }
                    i = to - 1;
                }
                else if(i>0)
                {
                    fronts[i] = fronts[i - 1];
                }
            }

            int[] backs = new int[n];
            for(int i = n-1; i>=0; i--)
            {
                if (s[i] == 'o')
                {
                    backs[i] = 1;
                    if (i < n - 1)
                    {
                        backs[i] += backs[i + 1];
                    }
                    int to = i - c - 1;
                    for (int j = i - 1; j >= Max(to, 0); j--)
                    {
                        backs[j] = backs[j + 1];
                    }
                    i = to + 1;
                }
                else if (i < n - 1)
                {
                    backs[i] = backs[i + 1];
                }
            }

            for(int i = 0; i < n; i++)
            {
                if (s[i] == 'o')
                {
                    int cnt = 0;
                    if (i > 0)
                    {
                        cnt += fronts[i - 1];
                    }
                    if (i < n - 1)
                    {
                        cnt += backs[i + 1];
                    }
                    if (cnt == k - 1)
                    {
                        WriteLine(i + 1);
                    }
                }
            }
        }

        private static string Read() { return ReadLine(); }
        private static char[] ReadChars() { return Array.ConvertAll(Read().Split(), a => a[0]); }
        private static int ReadInt() { return int.Parse(Read()); }
        private static long ReadLong() { return long.Parse(Read()); }
        private static double ReadDouble() { return double.Parse(Read()); }
        private static int[] ReadInts() { return Array.ConvertAll(Read().Split(), int.Parse); }
        private static long[] ReadLongs() { return Array.ConvertAll(Read().Split(), long.Parse); }
        private static double[] ReadDoubles() { return Array.ConvertAll(Read().Split(), double.Parse); }
    }
}


Measured memory_bytes: 16604