#include <cstdio>
#include <cstring>
#include <iostream>
#include <cmath>
using namespace std;

int main(){
	int h,n,x,s=0;
	cin>>h>>n;
	for(int i=1;i<=n;i++){
		cin>>x;
		s+=x;
	}
	if(s>=h)cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	return 0;
}