#include<iostream>
using namespace std;
int main(){
  int a,b,sum=0,c;
  cin>>a>>b;
  for(int i=0;i<b;i++){
    cin>>c;
    sum+=c;
  }
  if(a<=sum)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;
}