#include<iostream>
using namespace std;
int main() {
	int n, a, b; cin >> n >> a >> b;
	char s[114514]; cin >> s;
	int cnta = 0, cntb = 0;
	for (int i = 0; i < n; i++) {
		if (s[i] == 'a') {
			if (cnta < a + b) {
				cout << "Yes\n";
				cnta++;
				continue;
			}
		}
		else if (s[i] == 'b') {
			if (cnta < a + b&&cntb < b) {
				cout << "Yes\n";
				cnta++; cntb++;
				continue;
			}
		}
		cout << "No\n";
	}
}