function main(input){
    input = input.split('\n');
    inputA = input[0].split(' ');
    inputH = parseInt(inputA[0]);
    inputN = parseInt(inputA[1]);
    inputB = input[1].split(' ');
    sum = 0;
    out = '';

    for(i=0;i<inputN;i++){
        sum = sum + parseInt(inputB[i]);
    }
    
    res = inputH-sum;

    if(res<=0){
        out = 'Yes';
    }
    else if(res>0){
        out = 'No';
    }

    console.log(out);
}

main(require("fs").readFileSync("/dev/stdin", "utf8"));