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

int main(){
  int n,a,b,an,bn;
  char s;
  cin>>n>>a>>b;
  an=0;
  bn=0;
  for(int i=0;i<n;i++){
    cin>>s;
    if(s=='a'){
      if(an+bn<a+b){
	an++;
	cout<<"Yes"<<endl;
      }else cout<<"No"<<endl;
    }else if(s=='b'){
	if(an+bn<a+b&&bn+1<=b){
	  bn++;
	  cout<<"Yes"<<endl;
	}else cout<<"No"<<endl;
    }else if(s=='c')cout<<"No"<<endl;
  }
  
  return 0;
}
