#include <bits/stdc++.h>
using namespace std;

int main() {
  long n,k,c,day;
  string s;
  cin >> n >> k >> c >> s;
  vector<long> l(k);
  vector<long> r(k);

  day=0;
  for(long i=0;i<k;day++) {
    if(s[day]=='o') {
      l[i]=day+1;
      i++;
      day+=c;
    }
  }

  day=n-1;
  for(long i=k-1;i>=0;day--) {
    if(s[day]=='o') {
      r[i]=day+1;
      i--;
      day-=c;
    }
  }
  for(long i=0;i<k;i++) if(l[i]==r[i]) cout << l[i] << endl;
}