#include <iostream>
#include <iomanip>
using namespace std;
int main(){
    int h,n,s=0;
    cin>>h>>n;
    for(i=1;1<=n;i++){
        cin>>x;
    } 
    if(h<=s)cout<<"YES"<<endl;
    else cout<<"NO"<<endl; 
    return 0;
}
