#include <iostream>
#include <string>
#define MAXN 200000
using namespace std;
int main(){
	int N, K, C;
	string s;
	int bk[MAXN];
	cin >> N >> K >> C >> s;
	int last = s.size()+C;
	for(int i=s.size()-1; i>=0; i--)
		if(s[i] == 'o' && last > i+C)
			bk[last=i] = K--;
	//for(int i=0; i<s.size(); i++)
		//cout << bk[i] << " ";
	//cout << endl;
	K = 1;
	last = -C-1;
	for(int i=0; i<s.size(); i++)
		if(s[i] == 'o' && last < i-C)
			if(K++ == bk[last=i])
				cout << i+1 << endl;
}





