let nab = readLine()!.characters.split(" ").map { Int(String($0))! }
let s = readLine()!.characters

var count = 0
var foreign = 0
for student in s {
    switch student {
    case "a" where count < nab[1] + nab[2]:
        print("Yes")
        count += 1
    case "b" where count < nab[1] + nab[2] && foreign + 1 <= nab[2]:
        print("Yes")
        count += 1
        foreign += 1
    default:
        print("No")
    }
}
