#include <bits/stdc++.h>
#include <math.h>
#define rep(i, n) for(int i = 0; i < n; ++i)
using namespace std;

int main() {
  int n, a, b;
  string s;
  cin >> n >> a >> b >> s;
  rep(i, n){
    if(s[i] == 'a' && a + b > 0){
      cout << "Yes" << endl;
      if(a > 0) --a;
      else --b;
    }
    else if(s[i] == 'b' && b > 0){
      cout << "Yes" << endl;
      --b;
    }
    else cout << "No" << endl;
  }
  return 0;
}