import sys

input = sys.stdin.readline

H,N = [int(i) for i in input().split()]

A = [int(i) for i in input().split()]

sum = 0

for i in range(N) :

    sum += A[i]

if sum >= H :

    print("Yes")

else :

    print("No")
#template

from collections import Counter

def inputlist(): return [int(j) for j in input().split()]

H,N = inputlist()

A = inputlist()

s = sum(A)

if H <= s:

    print("Yes")

else:

    print("No")
import sys

input = sys.stdin.readline
H, N = [int(i) for i in input().split()]
A = [int(i) for i in input().split()]
sum = 0
for i in range(N):
    sum += A[i]
if sum >= H:
    print("Yes")
else:
    print("No")

# template
from collections import Counter


def inputlist():
    return [int(j) for j in input().split()]


H, N = inputlist()
A = inputlist()
s = sum(A)
if H <= s:
    print("Yes")
else:
    print("No")

-import sys +# template +from collections import Counter -input = sys.stdin.readline -H, N = [int(i) for i in input().split()] -A = [int(i) for i in input().split()] -sum = 0 -for i in range(N): -    sum += A[i] -if sum >= H: + +def inputlist(): +    return [int(j) for j in input().split()] + + +H, N = inputlist() +A = inputlist() +s = sum(A) +if H <= s: