#include <bits/stdc++.h>
typedef long long LL;
#define SORT(c) sort((c).begin(),(c).end())
 
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
 
using namespace std;
int main(void)
{
  int n,a,b;
  string s;
  cin >> n >> a >> b >> s;
  for(char c:s){
    if(c=='a' && a+b){
      cout << "Yes" << endl;
      --a;
    }else if(c=='b' && a+b && b){
      cout << "Yes" << endl;
      --b;
    }else cout << "No" << endl;
  }
  return 0;
}