#include<cstdio>
#include<cstring>
#include<iostream>
#include<cmath>
using namespace std;
int main(){
	int h,n,s=0;
	cin>>h>>n;
	for(i=1;i<=n;i++){
		cin>>x;
		s+=x;
	}
	if(h<=s)cout<<"Yes";
	else<<"No";
	return 0;
}