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

s=eval(input())

c,d=0,0

for i in range(n):

  f=0

  if s[i]=="a":

    if c<a+b:

      f=1

      c+=1

  if s[i]=="b":

    if c<a+b and d<b:

      f=1

      c+=1

      d+=1

  print(("Yes" if f==1 else "No"))
n,a,b=list(map(int,input().split()))

c,d=0,0

s=eval(input())

for i in s:

    f=0

    if i=='a':

        if c<a+b:

            c+=1

            print('Yes')

            f=1

    elif i=='b':

        if c<a+b and d<b:

            c+=1

            d+=1

            print('Yes')

            f=1

    if f==0:

        print('No')
n, a, b = list(map(int, input().split()))
s = eval(input())
c, d = 0, 0
for i in range(n):
    f = 0
    if s[i] == "a":
        if c < a + b:
            f = 1
            c += 1
    if s[i] == "b":
        if c < a + b and d < b:
            f = 1
            c += 1
            d += 1
    print(("Yes" if f == 1 else "No"))

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

+c, d = 0, 0 -c, d = 0, 0 -for i in range(n): +for i in s: -    if s[i] == "a": +    if i == "a": +            c += 1 +            print("Yes") -            c += 1 -    if s[i] == "b": +    elif i == "b": -            f = 1 -    print(("Yes" if f == 1 else "No")) +            print("Yes") +            f = 1 +    if f == 0: +        print("No")