read n a b
read s
p=1
c=1
for i in `echo $s|fold -w1`
do
case $i in
'a')
if [ $p -le $((a+b)) ];then
echo Yes
p=$((p+1))
else
echo No
fi
;;
'b')
if [ $p -le $((a+b)) ]&&[ $c -le $b ];then
echo Yes
p=$((p+1))
c=$((c+1))
else
echo No
fi
;;
'c')echo No;;
esac
done