#include<bits/stdc++.h>
using namespace std;
int main() {
  int n,k,c,i,j;
  string s;
  cin>>n>>k>>c>>s;
  vector<int> l(k),r(k);
  j=0;
  for (i=0;i<n;i++){
    if (s.at(i)=='o') {
      l.at(j)=i+1;
      j++;
      i+=c;
    }
    if (j==k) break;
  }
  j=k-1;
  for (i=n-1;i>=0;i--){
    if (s.at(i)=='o') {
      r.at(j)=i+1;
      j--;
      i-=c;
    }
    if (j==-1) break;
  }
  for(i=0;i<k;i++) if (l.at(i)==r.at(i)) cout<<l.at(i)<<endl;
}