#include<bits/stdc++.h>
using namespace std;

int main()
{
  int a,n,b=0;
  cin>>a>>n;
  while(n--)
  {
    int t;
    cin>>t;
    b+=t;
  }
  if(b>=a) cout<<"Yes";
  else cout<<"No";
  
  return 0;
}