#include<bits/stdc++.h>
using namespace std;

int main()
{
int N,A,B,san=0,kai=1;scanf("%d %d %d",&N,&A,&B);
char S[N];scanf("%s",S);
for(int i=0;i<N;i++)
{
  if(S[i]=='a'&&san<A+B){printf("Yes\n");san++;}
  else if(S[i]=='b'&&san<A+B&&kai<=B){printf("Yes\n");san++;kai++;}
  else printf("No\n");
}
}