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


	return 0;
}