read n k
read a

nk=$((n-k))
cnt=0
ki=0
k1=1
kn=$((k+1))

for num in $a
do
  cnt=$((cnt+1))
  ki=$((ki+num))
  if [ $cnt -eq $k ]
  then
    break
  fi
done
for i in $(seq $nk)
do
  k1_num=$(echo $a | awk -v x=$k1 '{print $x}')
  kn_num=$(echo $a | awk -v x=$kn '{print $x}')
  if [ $kn_num -gt $k1_num ]
  then
    echo Yes
  else
    echo No
  fi
  k1=$((k1+1))
  kn=$((kn+1))
done
