n, a, b = map(int, input().split())
st = str(input())
bor = a + b
ans = []
pa = 1
fore = 1
for i in st:
    if i == 'a':
        if pa <= bor:
            print('Yes')
            pa += 1
        else:
            print('No')
    elif i == 'b':
        if pa <= bor:
            if fore <= b:
                print('Yes')
                pa += 1
                fore += 1
            else:
                print('No')
        else:
            print('No')
    else:
        print('No')

66db970bd32b1fa46496c100a5b49af76d12624a
<mask token>

<mask token>
for i in st:
    if i == 'a':
        if pa <= bor:
            print('Yes')
            pa += 1
        else:
            print('No')
    elif i == 'b':
        if pa <= bor:
            if fore <= b:
                print('Yes')
                pa += 1
                fore += 1
            else:
                print('No')
        else:
            print('No')
    else:
        print('No')

n, a, b = map(int, input().split())
st = str(input())
bor = a + b
ans = []
pa = 1
fore = 1
for i in st:
    if i == 'a':
        if pa <= bor:
            print('Yes')
            pa += 1
        else:
            print('No')
    elif i == 'b':
        if pa <= bor:
            if fore <= b:
                print('Yes')
                pa += 1
                fore += 1
            else:
                print('No')
        else:
            print('No')
    else:
        print('No')
