#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
	int a,b,c,d,k=0,o;
	cin>>a>>b;
	c=a;
	for(o=1;o<=b;o++)
	{
		cin>>d;
		c=c-d;
		if(c<=0)
		{
			k=1;
			break;
		}
	}
	if(k==1)
	{
		cout<<"YES";
	}
	else
	{
		cout<<"NO";
	}
	return 0;
} 