import std.stdio, std.string, std.algorithm, std.array, std.range, std.conv,
    std.typecons, std.math, std.container, std.format, std.numeric;

void main(string[] args)
{
    long h, n;
    readf("%d %d\n", &h, &n);
    long as = readln.strip.split.to!(long[]).sum;
    if (h <= as)
    {
        writeln("Yes");
    }
    else
    {
        writeln("No");
    }
}
