"use strict";

const main = arg => {
    // 標準入力の不要な空白と改行を削除し、配列に格納する
    const input = arg.trim().split("\n");
    const hitPoint = Math.floor(input[0].split(" ")[0], 10);
    const atcPoints = input[1].split(" ").map(points => {
        return Math.floor(points, 10);
    })
    const returnSum = (a, n) => {
        return a + n;
    }
    const atcSum = atcPoints.reduce(returnSum)

    atcSum >= hitPoint ? console.log("Yes") : console.log("No");
}

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