#!/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)
typeset -a AR
mapfile  -u 1 -n $NoQ AR
IFS=$''
# Memo: nu includes \r
echo "${AR[*]}" | sort |uniq -c |IFS=$'\n' awk -v ip=${IP} -v noq=${NoQ} -v nom=${NoM} 'BEGIN{getline;ind=1;}
{co=$1;nu=$2;sub("\r","",nu);
        while( ind < nu ){
                print "No";
                ind++;
        }
        if(( ip - noq + co) > 0 ){
                print "Yes";
        } else {
                print "No";
        }
        ind++;
}
END{
        while (ind <= nom ){
                print "No"
                ind++;
        }
}'
