h,n = io.read("*n","*n","*l")
al = io.read()
for a in string.gmatch( al,"%d+" ) do
    h = h - tonumber(a)
  io.stderr:write(tostring(h).."\n")
end

if h <= 0 then 
    print("Yes")
else 
    print("No")
end