#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
int main(){
	int n,a,b;
	string s;
	cin >> n >> a >> b >> s;
	int counta=0,countb=0;
	a+=b;
	rep(i,n){
		if(s[i]=='a'&&counta<a){
			puts("Yes");
			counta++;
		}else if(s[i]=='b'&&counta<a&&countb<b){
			puts("Yes");
			counta++;countb++;
		}else{
			puts("No");
		}
	}
}