# https://atcoder.jp/contests/abc153/tasks/abc153_b

read row ; row=($row) ; h=$((row[0])) ; n=$((row[1]))
read row ; A=($row)
sum=$((0))
for v in ${A[@]} ; do
  sum=$((sum + v))
done
if [ $h -le $sum ] ; then
  echo "Yes"
else
  echo "No"
fi
