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

ll n, k, c;
string s;

int main() {
	cin>>n>>k>>c;
	cin>>s;
	string sl=s, sr=s;
	ll l[k+1], r[k+1], day=1;
	for (int i=1; i<=n; i++) {
		if (sl[i-1]=='o'&&day<=k) {
			l[day]=i;
			i+=c;
			day++;
		}
	}
	day=k;
	for (int i=n; i>0; i--) {
		if (sr[i-1]=='o'&&day>0) {
			r[day]=i;
			i-=c;
			day--;
		}
	}
	for (int i=1; i<=k; i++) {
		if (l[i]==r[i]) cout<<l[i]<<endl;
	}
}

