#!/bin/bash

typeset -i I=0
typeset -i J=0
read INPUT1
#Number of members
typeset -i NoM=$(echo $INPUT1 | cut -d' ' -f 1 )
#Initial Points
typeset -i IP=$(echo $INPUT1 | cut -d' ' -f 2 )
#NoQ Number of questions
typeset -i NoQ=$(echo $INPUT1 | cut -d' ' -f 3 )

# Quick reading (prototype)

for (( J = 0 ; $J < $NoQ ; J++ ))
do
        read TMP
        echo $TMP　>> tmpfile
done

cat tmpfile | sort |uniq -c | awk -v ip=${IP} -v noq=${NoQ} -v nom=${NoM} 'BEGIN{ind=1;}
{co=$1;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++;
        }
}'
