#!/bin/bash

typeset -i I=0
typeset -i J=0
#Number of members
typeset -i NoM=0
#Initial Points
typeset -i IP=0
#NoQ Number of questions
typeset -i NoQ=0
read NoM IP NoQ

# for my env
SORT=/usr/bin/sort

# Quick reading (prototype)
read TMP
echo $TMP > tmpfile
for (( J = 1 ; $J < $NoQ ; J++ ))
do
        read TMP
        echo $TMP >> tmpfile
done
$SORT tmpfile |uniq -c | $SORT -n -k 2 | awk -v ip=${IP} -v noq=${NoQ} -v nom=${NoM} 'BEGIN{ind=1;}
{
        co=$1+0;nu=$2+0;
        while( ind < nu ){
                print "No";
                ind++;
        }
        if(( ip - noq + co ) > 0 ){
                print "Yes";
        } else {
                print "No";
        }
        ind++;
}
END{
        if(( ip - noq ) > 0 ){
                pri="Yes";
        } else {
                pri= "No";
        }
        while (ind <= nom ){
                print pri;
                ind++;
        }
}'
