#include <iostream>
#include <vector>
using namespace std;

int main() {
	int N, K, C;
	cin >> N >> K >> C;
	string S;
	cin >> S;
	vector<int> Left, Right;
	int i = 0;
	int num = 0;
	while (i<N) {
		if (S[i] == 'o') {
			Left.push_back(i);
			i += C + 1;
			num++;
		}
		else i++;
		if (num == K) break;
	}
	i = N - 1;
	num = 0;
	while (i >= 0) {
		if (S[i] == 'o') {
			Right.push_back(i);
			i -= (C + 1);
			num++;
		}
		else i--;
		if (num == K) break;
	}
	for (int i = 0; i < K; i++) {
		if (Left[i] == Right[K-i-1] ) cout << Left[i] + 1 << endl;
	}
}