#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,a,b,p=0,q=0;
  cin>>n>>a>>b;
  string s;
  cin>>s;
  for(int i=0;i<s.size();i++){
    if(s[i]=='c')cout<<"No"<<endl;
    if(s[i]=='a'){
      if(p<a+b)p++,cout<<"Yes"<<endl;
      else cout<<"No"<<endl;
    }
    if(s[i]=='b'){
      if(p<a+b&&q<b)q++,p++,cout<<"Yes"<<endl;
      else cout<<"No"<<endl;
    }
  }
  return 0;
}
