H, N = list(map(int, input().split()))

A = list(map(int, input().split()))





def answer(H: int, N: int, A: list) -> str:

    damage = 0

    for i in range(0, N):

        damage += int(A[i])

        i += 1

    if damage < H:

        return 'No'

    else:

        return 'Yes'



print((answer(H, N, A)))

H, N = list(map(int,input().split()))

A = list(map(int,input().split()))



if H <= sum(A):

    print("Yes")

else:

    print("No")
H, N = list(map(int, input().split()))
A = list(map(int, input().split()))


def answer(H: int, N: int, A: list) -> str:
    damage = 0
    for i in range(0, N):
        damage += int(A[i])
        i += 1
    if damage < H:
        return "No"
    else:
        return "Yes"


print((answer(H, N, A)))

H, N = list(map(int, input().split()))
A = list(map(int, input().split()))
if H <= sum(A):
    print("Yes")
else:
    print("No")

- - -def answer(H: int, N: int, A: list) -> str: -    damage = 0 -    for i in range(0, N): -        damage += int(A[i]) -        i += 1 -    if damage < H: -        return "No" -    else: -        return "Yes" - - -print((answer(H, N, A))) +if H <= sum(A): +    print("Yes") +else: +    print("No")