#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");
}

