program common_raccoon_vs_monster
  implicit none
  integer :: h, n, a(100000) = 0
  read(*,*) h, n
  read(*,*) a(1:n)
  write(*,'(a)') trim(merge("No ","Yes",h > sum(a(1:n))))
end program common_raccoon_vs_monster