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