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

S = eval(input())



passed = 0

oversea = 0

for s in S:

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

        passed += 1

        print("Yes")

        continue



    if s == "b" and passed < A + B and oversea < B:

        passed += 1

        oversea += 1

        print("Yes")

        continue



    print("No")

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

S = eval(input())



X, Y = 0, 0

for s in S:

    if s == 'c':

        print('No')



    if s == 'a':

        if X + Y < A + B:

            print('Yes')

            X += 1

        else:

            print('No')



    if s == 'b':

        if X + Y < A + B and Y < B:

            print('Yes')

            Y += 1

        else:

            print('No')

N, A, B = list(map(int, input().split()))
S = eval(input())
passed = 0
oversea = 0
for s in S:
    if s == "a" and passed < A + B:
        passed += 1
        print("Yes")
        continue
    if s == "b" and passed < A + B and oversea < B:
        passed += 1
        oversea += 1
        print("Yes")
        continue
    print("No")

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

-passed = 0 -oversea = 0 +X, Y = 0, 0 -    if s == "a" and passed < A + B: -        passed += 1 -        print("Yes") -        continue -    if s == "b" and passed < A + B and oversea < B: -        passed += 1 -        oversea += 1 -        print("Yes") -        continue -    print("No") +    if s == "c": +        print("No") +    if s == "a": +        if X + Y < A + B: +            print("Yes") +            X += 1 +        else: +            print("No") +    if s == "b": +        if X + Y < A + B and Y < B: +            print("Yes") +            Y += 1 +        else: +            print("No")