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

s = eval(input())



A = 0

B = 0

for i in s:

    if A + B < a + b:

        if i == "a":

            A += 1

            print("Yes")

        elif i == "b" and B < b:

            B += 1

            print("Yes")

        else:

            print("No")

    else:

        print("No")

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

S = input()



total = 0

tot_b = 0



ans = []



for s in S:

    if s == "a" and total < A + B:

        ans.append("Yes")

        total += 1

    elif s == "b" and total < A + B and tot_b < B:

        ans.append("Yes")

        tot_b += 1

        total += 1

    else:

        ans.append("No")



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

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

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

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