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

int main(void)
{
	int n, k, c; cin >> n >> k >> c;
	string s; cin >> s;
	vector<int> left, right;
	for(int i=0;i<n;i+=(c+1)) {
		while(s[i]=='x') i++;
		right.pb(i);
		if(right.size() == k) break;
	}
	for(int i=n-1;i>=0;i-=(c+1)) {
		while(s[i]=='x') i--;
		left.pb(i);
		if(left.size() == k) break;
	}
	if(right.size() < k || left.size() < k) return 0;
	reverse(left.begin(), left.end());
	for(int i=0;i<k;i++) {
		if(left[i] == right[i]) {
			cout << left[i] + 1 << endl;
		}
	}


	return 0;
}
