#n = 人数,a = 日本,b = 海外

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

#s = 順位

s = list(eval(input()))

#k = 結果格納

k = []

j = a + b

c = 0

d = 0



for i in range(n):

    if s[i] == 'a':

        if c < j:

            c += 1

            k.append('Yes')

        else:

            k.append('No')

    elif s[i] == 'b':

        if c < j:

            if d < b:

                c += 1

                d += 1

                k.append('Yes')

            else:

                k.append('No')

        else:

            k.append('No')

    else:

        k.append('No')



for i in range(n):

    print((k[i]))
n,a,b = list(map(int,input().split()))

s = eval(input())

x = a + b

y = 1

z = 1

for i in range(n):

    if s[i] == 'a':

        if y <= x:

            print('Yes')

            y += 1

        else:

            print('No')

    elif s[i] == 'b':

        if y <= x and z <= b:

            print('Yes')

            y += 1

            z += 1

        else:

            print('No')

    else:

        print('No')
# n = 人数,a = 日本,b = 海外
n, a, b = list(map(int, input().split()))
# s = 順位
s = list(eval(input()))
# k = 結果格納
k = []
j = a + b
c = 0
d = 0
for i in range(n):
    if s[i] == "a":
        if c < j:
            c += 1
            k.append("Yes")
        else:
            k.append("No")
    elif s[i] == "b":
        if c < j:
            if d < b:
                c += 1
                d += 1
                k.append("Yes")
            else:
                k.append("No")
        else:
            k.append("No")
    else:
        k.append("No")
for i in range(n):
    print((k[i]))

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

-# n = 人数,a = 日本,b = 海外 -# s = 順位 -s = list(eval(input())) -# k = 結果格納 -k = [] -j = a + b -c = 0 -d = 0 +s = eval(input()) +x = a + b +y = 1 +z = 1 -        if c < j: -            c += 1 -            k.append("Yes") +        if y <= x: +            print("Yes") +            y += 1 -            k.append("No") +            print("No") -        if c < j: -            if d < b: -                c += 1 -                d += 1 -                k.append("Yes") -            else: -                k.append("No") +        if y <= x and z <= b: +            print("Yes") +            y += 1 +            z += 1 -            k.append("No") +            print("No") -        k.append("No") -for i in range(n): -    print((k[i])) +        print("No")