N,A,B = list(map(int,input().split()))

S = eval(input())



pa = pb = 0

for c in S:

    if c == 'a' and pa+pb < A+B:

        print('Yes')

        pa += 1

    elif c == 'b' and pa+pb < A+B and pb < B:

        print('Yes')

        pb += 1

    else:

        print('No')

N,A,B = map(int,input().split())

S = input()



ans = ['No'] * N

p = b = 0

for i,c in enumerate(S):

    if c == 'a':

        if p < A+B:

            ans[i] = 'Yes'

            p += 1

    elif c == 'b':

        if p < A+B and b < B:

            ans[i] = 'Yes'

            p += 1

            b += 1

print(*ans,sep='\n')

N, A, B = list(map(int, input().split()))
S = eval(input())
pa = pb = 0
for c in S:
    if c == "a" and pa + pb < A + B:
        print("Yes")
        pa += 1
    elif c == "b" and pa + pb < A + B and pb < B:
        print("Yes")
        pb += 1
    else:
        print("No")

N, A, B = map(int, input().split())
S = input()
ans = ["No"] * N
p = b = 0
for i, c in enumerate(S):
    if c == "a":
        if p < A + B:
            ans[i] = "Yes"
            p += 1
    elif c == "b":
        if p < A + B and b < B:
            ans[i] = "Yes"
            p += 1
            b += 1
print(*ans, sep="\n")

-N, A, B = list(map(int, input().split())) -S = eval(input()) -pa = pb = 0 -for c in S: -    if c == "a" and pa + pb < A + B: -        print("Yes") -        pa += 1 -    elif c == "b" and pa + pb < A + B and pb < B: -        print("Yes") -        pb += 1 -    else: -        print("No") +N, A, B = map(int, input().split()) +S = input() +ans = ["No"] * N +p = b = 0 +for i, c in enumerate(S): +    if c == "a": +        if p < A + B: +            ans[i] = "Yes" +            p += 1 +    elif c == "b": +        if p < A + B and b < B: +            ans[i] = "Yes" +            p += 1 +            b += 1 +print(*ans, sep="\n")