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

char s[100010];

int main(){
	int n, a, b;
	scanf("%d%d%d%s", &n, &a, &b, s);
	int passed = 0, os = 1;
	int mx = a + b;
	for(int i = 0; i < n; i++) {
		if(s[i] == 'a') {
			if(passed < mx) {
				printf("Yes\n");
				passed++;
			} else printf("No\n");
		}else if(s[i] == 'b') {
			if(passed < mx && os <= b) {
				printf("Yes\n");
				passed++; os++;
			} else printf("No\n");
		}else{
			printf("No\n");
		}
	}
}
