#import <stdio.h>
#define rep(i, n) for (int i = 0, i##_len = (int)(n); i < i##_len; i++)
int main() {
    int n, a, b;
    scanf("%d %d %d ", &n, &a, &b);
    char s[1000001];
    scanf("%s", s);
    int totalcount = 0;
    int bcount = 0;
    rep(i, n) {
        switch (s[i]) {
        case 'a':
            if (totalcount < a + b) {
                totalcount++;
                puts("Yes");
                break;
            }
        case 'b':
            bcount++;
            if (totalcount < a + b && bcount <= b) {
                totalcount++;
                puts("Yes");
                break;
            }
        default:
            puts("No");
            break;
        }
    }
}
