#include<stdio.h>
int main()
{
    int y,n,i,s=0,x;
    scanf("%d",&y);
    scanf("%d",&n);
    for(i=0;i<n;i++){
        scanf("%d",&x);
        s=s+x;
    }
    if(s>=y){
        printf("yes");
    }
    else
        printf("N0");
}