#include<cstdio>


int main(){
  char s[100001];
  int n,a,b,kokunai = 0,kaigai = 0;
  scanf("%d %d %d %s",&n,&a,&b,s);
  for(int i=0;i<n;i++){
    if(kokunai+kaigai<a+b&&s[i]!='c'){
      if(s[i]=='a'){
        printf("Yes\n");
        kokunai++;
      }else if(s[i]=='b'&&kaigai<b){
        printf("Yes\n");
        kaigai++;
      }else{
        printf("No\n");
      }
    }else{
      printf("No\n");
    }
  }
  return 0;
}
