#include <bits/stdc++.h>

using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using pii = pair<int,int>;
using pll = pair<long, long>;
template <class T> using V = vector<T>;
template <class T> using VV = V<V<T>>;
#define rep(i, n) for(ll i = 0; i<n; i++)
#define rep_s(i, start, n) for(ll i= start;  i<n; i++)
#define rep_down(i, n) for(ll i = n-1; i>=0; i--)
#define rep_down_s(i, n, start) for(ll i = n-1; i>=start; i--)
#define ALL(a) (a).begin(), (a).end()
#define ALL_str(a) (a).cbegin(), (a).cend()
#define print(ans) cout << ans << endl;
#define MOD 1000000007
string alphabet_upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
string alphabet_lower  = "abcdefghijklmnopqrstuvwxyz";
string numbers = "0123456789";

/*
for (iterator = hash.begin(); iterator != hash.end(); iterator++)
{
// ここで、要素毎の操作を行います。
std::pair<std::string, CMyClass> element = *iterator;

}
*/
/*
using edge = struct {int to; ll cost;};
vector<edge> tree[limit];
ll depth[limit];

void dfs(int v, int p, ll d){
  depth[v] = d;
  //cout <<"v: " << v << endl;
  for (auto &e: tree[v]){
    //cout << "e.to: " << e.to << endl;
    if (e.to == p) continue;
    dfs(e.to, v, d+e.cost);
  }
}
*/
int keta_sum(int num){
  int dig, sum = 0;
  while(num){
    dig = num % 10;
    sum = sum + dig;
    num = num / 10;
  }
  return sum;
}

ll keta_num(ll num){
  ll total = 0;
  while(num){
    num /= 10;
    total++;
  }
}


ll binary_search(ll left_key, ll border, ll low, ll high) {
     // 配列 a の左端と右端
    ll mid = (low+high)/2;
    while (high > low+1) {
       mid = (low+high)/2;
        if (left_key*mid>border) high = mid;
        else if (left_key*mid<border) low = mid;
        else {
          mid =mid-1;
          break;
        }
    }
    return mid;
}

bool IsPrime(ll a){
  ll b = sqrt(a);
  b++;
  while(b-->=2){
    if (a%b==0) return false;
  }
  return true;
}

ll gcd(ll a, ll b){
  ll tmp;
  if(a<b){
    tmp = a;
    a = b;
    b = tmp;
  }

  ll r = a % b;
  while(r!=0){
    a = b;
    b = r;
    r = a % b;
  }
  return b;
}

ll fibonacchi(ll num){
  ll f0 = 0, f1 = 1, f2;
  ll count = 0;
  while(count<num){
    f2 = f0+f1;
    f0 = f1;
    f1 = f2;
    count++;
  }
  return f2;
}

struct UnionFind {
    vector<int> par; // par[i]:iの親の番号　(例) par[3] = 2 : 3の親が2

    UnionFind(int N) : par(N) { //最初は全てが根であるとして初期化
        for(int i = 0; i < N; i++) par[i] = i;
    }

    int root(int x) { // データxが属する木の根を再帰で得る：root(x) = {xの木の根}
        if (par[x] == x) return x;
        return par[x] = root(par[x]);
    }

    void unite(int x, int y) { // xとyの木を併合
        int rx = root(x); //xの根をrx
        int ry = root(y); //yの根をry
        if (rx == ry) return; //xとyの根が同じ(=同じ木にある)時はそのまま
        par[rx] = ry; //xとyの根が同じでない(=同じ木にない)時：xの根rxをyの根ryにつける
    }

    bool same(int x, int y) { // 2つのデータx, yが属する木が同じならtrueを返す
        int rx = root(x);
        int ry = root(y);
        return rx == ry;
    }
};
vector<ll> very;
ll saiki(ll num, ll k, ll keta){
  if (keta == k){
    return 0;
  }
  ll amari = num%10;
  very.push_back(num*10+amari);
  saiki(num*10+amari, k, keta+1);
  if (amari != 9) {
    very.push_back(num*10+amari+1);
    saiki(num*10+amari+1, k, keta+1);
  }
  if (amari != 0){
    very.push_back(num*10+amari-1);
    saiki(num*10+amari-1, k, keta+1);
  }  
}
int main(void){
  ll N, M, A, B, C, D, E, F, G, K,L, W, H, P, Q, R, V, X, Y;
  string S, T, T_B;
  cin >> N >> K >> C;
  cin >> S;

  ll last_work = 2000000;
  ll worked = 0;
  vector<ll> a, b;
  rep(i, N){
    if (S[i] == 'o' && last_work>=C){
      last_work = 0;
      if (a.size() != K) a.push_back(i);
    } else {
      last_work++;
    }
  }
  last_work =2000000;
  rep(i, N){
    if (S[N-1-i] == 'o' && last_work>=C){
      last_work = 0;
      //cout <<"N-1-i: " << N-1-i << endl;
      if (b.size() != K) b.push_back(N-1-i);
    } else {
      last_work++;
    }
  }
  //cout << "a.size(): " << a.size() << ", b.size(): " << b.size() << endl;
  sort(ALL(b));
  ll abs;
  rep(i, K){
    //cout << "a[i]: "<<a[i] <<", b[i]: " << b[i] << endl;
    ll count = 0;
    rep_s(j, a[i], b[i]+1){
      if (S[j] == 'o'){
        count++;
        //cout <<" j: "<< j << ", count: " << count << endl;
        abs = j+1;
        if (count>1) break;
      } 
      if (j == b[i]) cout << abs << endl;
    }
  }
  
}


Measured memory_bytes: 5108