#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b;
	int x;
	cin>>a>>b;
	for(int i=1;i<=b;i++)
	{
		cin>>x;
		a-=x;
	}
	if(a<=0)
	{
		cout<<"Yes";
	}
	else
	{
		cout<<"No";
	}
	return 0;
}