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

int main() {
  int N, A, B;
  cin >> N >> A >> B;
  string S;
  cin >> S;

  int tot = 0;
  int Btot = 0;
  for (int i = 0; i < N; i++) {
    if (S.at(i) == 'a' && tot < (A + B)) {
      cout << "Yes" << endl;
      tot++;
      continue;
    }
    if (S.at(i) == 'b' && tot < (A + B) && Btot < B) {
      cout << "Yes" << endl;
      tot++;
      Btot++;
      continue;
    }
    cout << "No" << endl;
  }
}