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

s=eval(input())



yosen_ok=0

kaigai=0

for i,ss in enumerate(s):

    if yosen_ok<a+b:

        if ss=='a':

            yosen_ok+=1

            print('Yes')

        elif ss=='b':

            kaigai+=1

            if kaigai<=b:

                yosen_ok+=1

                print('Yes')

            else:

                print('No')

        else:

            print('No')

        continue

    else:

        print('No')

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

s=eval(input())

yosen=0

kaigai=0

for ss in s:

  if ss=="a" and yosen<a+b:

    yosen+=1

    print('Yes')

  elif ss=="b" and yosen<a+b:

    if kaigai<b:

      yosen+=1

      kaigai+=1

      print('Yes')

    else:

      print('No')

  else:

    print('No')
n, a, b = list(map(int, input().split()))
s = eval(input())
yosen_ok = 0
kaigai = 0
for i, ss in enumerate(s):
    if yosen_ok < a + b:
        if ss == "a":
            yosen_ok += 1
            print("Yes")
        elif ss == "b":
            kaigai += 1
            if kaigai <= b:
                yosen_ok += 1
                print("Yes")
            else:
                print("No")
        else:
            print("No")
        continue
    else:
        print("No")

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

-yosen_ok = 0 +yosen = 0 -for i, ss in enumerate(s): -    if yosen_ok < a + b: -        if ss == "a": -            yosen_ok += 1 +for ss in s: +    if ss == "a" and yosen < a + b: +        yosen += 1 +        print("Yes") +    elif ss == "b" and yosen < a + b: +        if kaigai < b: +            yosen += 1 +            kaigai += 1 -        elif ss == "b": -            kaigai += 1 -            if kaigai <= b: -                yosen_ok += 1 -                print("Yes") -            else: -                print("No") -        continue