n,a,b = list(map(int, input().split()))

s = eval(input())

p = a+b

cnt = 0

bcnt = 0

for i in range(n):

    if s[i] == 'a' and cnt < p:

        print('Yes')

        cnt+=1

    elif s[i] == 'b' and cnt < p and bcnt < b:

        print('Yes')

        cnt+=1

        bcnt+=1

    else:

        print('No')
n,a,b = list(map(int, input().split()))

s = eval(input())

ap=0

bp=0

for i in range(n):

    if s[i]=='a' and ap+bp<a+b:

        ap+=1

        print('Yes')

    elif s[i]=='b' and ap+bp<a+b and bp<b:

        bp+=1

        print('Yes')

    else:

        print('No')
n, a, b = list(map(int, input().split()))
s = eval(input())
p = a + b
cnt = 0
bcnt = 0
for i in range(n):
    if s[i] == "a" and cnt < p:
        print("Yes")
        cnt += 1
    elif s[i] == "b" and cnt < p and bcnt < b:
        print("Yes")
        cnt += 1
        bcnt += 1
    else:
        print("No")

n, a, b = list(map(int, input().split()))
s = eval(input())
ap = 0
bp = 0
for i in range(n):
    if s[i] == "a" and ap + bp < a + b:
        ap += 1
        print("Yes")
    elif s[i] == "b" and ap + bp < a + b and bp < b:
        bp += 1
        print("Yes")
    else:
        print("No")

-p = a + b -cnt = 0 -bcnt = 0 +ap = 0 +bp = 0 -    if s[i] == "a" and cnt < p: +    if s[i] == "a" and ap + bp < a + b: +        ap += 1 -        cnt += 1 -    elif s[i] == "b" and cnt < p and bcnt < b: +    elif s[i] == "b" and ap + bp < a + b and bp < b: +        bp += 1 -        cnt += 1 -        bcnt += 1