/******************************************************************************

                              Online C++ Compiler.
               Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <bits/stdc++.h>
#define int long long
using namespace std;

int32_t main()
{
    int n,k;
    cin >> n >> k;
    for(int i=0;i<k;i++)
    {
        int h;
        cin >> h;
        n-=h;
        if(n<=0)
        {
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "N0" << endl;
    return 0;
}
