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

S = eval(input())



a_cnt = 0

b_cnt = 0



for i in range(N):

    if S[i] == "a":

        if a_cnt + b_cnt < A + B:

            print("Yes")

            a_cnt += 1

        else:

            print("No")

    elif S[i] == "b":

        if a_cnt + b_cnt < A + B and b_cnt < B:

            print("Yes")

            b_cnt += 1

        else:

            print("No")

    else:

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

S = eval(input())

J = ""



a_cnt = 0

b_cnt = 0



for i in range(N):

    if S[i] == "a":

        if a_cnt + b_cnt < A + B:

            J += "Yes\n"

            a_cnt += 1

        else:

            J += "No\n"

    elif S[i] == "b":

        if a_cnt + b_cnt < A + B and b_cnt < B:

            J += "Yes\n"

            b_cnt += 1

        else:

            J += "No\n"

    else:

        J += "No\n"



print(J)
N, A, B = list(map(int, input().split()))
S = eval(input())
a_cnt = 0
b_cnt = 0
for i in range(N):
    if S[i] == "a":
        if a_cnt + b_cnt < A + B:
            print("Yes")
            a_cnt += 1
        else:
            print("No")
    elif S[i] == "b":
        if a_cnt + b_cnt < A + B and b_cnt < B:
            print("Yes")
            b_cnt += 1
        else:
            print("No")
    else:
        print("No")

N, A, B = list(map(int, input().split()))
S = eval(input())
J = ""
a_cnt = 0
b_cnt = 0
for i in range(N):
    if S[i] == "a":
        if a_cnt + b_cnt < A + B:
            J += "Yes\n"
            a_cnt += 1
        else:
            J += "No\n"
    elif S[i] == "b":
        if a_cnt + b_cnt < A + B and b_cnt < B:
            J += "Yes\n"
            b_cnt += 1
        else:
            J += "No\n"
    else:
        J += "No\n"
print(J)

+J = "" -            print("Yes") +            J += "Yes\n" -            print("No") +            J += "No\n" -            print("Yes") +            J += "Yes\n" -            print("No") +            J += "No\n" -        print("No") +        J += "No\n" +print(J)