#include <stdio.h>

int main(void) {
  int i, n, a, b, cnta = 0, cntb = 0;
  scanf("%d%d%d", &n, &a, &b);
  char s[n + 10];
  scanf("%s", s);
  for(i = 0; i < n; ++i) {
    if(s[i] == 'a' && cnta < a + b) printf("Yes\n"), cnta++;
    else if(s[i] == 'b' && cnta < a + b && cntb < b) printf("Yes\n"), cnta++, cntb++;
    else printf("No\n");
  }
  return 0;
}
