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

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



ans = 0

for i in range(N):

    ans += A[i]



if ans >= H:

    print('Yes')

else:

    print('No')

# printデバッグ用

import sys

argVec = sys.argv

if len(argVec) > 1:

    GBN_DEBUG = True

else:

    GBN_DEBUG = False



def dprn(s, i):

    if GBN_DEBUG:

        print(", " + s + " = " + str(i), end = "")



def dprns(s):

    if GBN_DEBUG:

        print(", " + s, end = "")



def dprni(i):

    if GBN_DEBUG:

        print(str(i), end=" ")



#S = input()

#N = int(input())

#S, T = input().split() 

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

#W = [input() for _ in range(N)]

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



if sum(A) >= H:

    print('Yes')

else:

    print('No')

H, N = list(map(int, input().split()))
A = list(map(int, input().split()))
ans = 0
for i in range(N):
    ans += A[i]
if ans >= H:
    print("Yes")
else:
    print("No")

# printデバッグ用
import sys

argVec = sys.argv
if len(argVec) > 1:
    GBN_DEBUG = True
else:
    GBN_DEBUG = False


def dprn(s, i):
    if GBN_DEBUG:
        print(", " + s + " = " + str(i), end="")


def dprns(s):
    if GBN_DEBUG:
        print(", " + s, end="")


def dprni(i):
    if GBN_DEBUG:
        print(str(i), end=" ")


# S = input()
# N = int(input())
# S, T = input().split()
H, N = map(int, input().split())
# W = [input() for _ in range(N)]
A = list(map(int, input().split()))
if sum(A) >= H:
    print("Yes")
else:
    print("No")

-H, N = list(map(int, input().split())) +# printデバッグ用 +import sys + +argVec = sys.argv +if len(argVec) > 1: +    GBN_DEBUG = True +else: +    GBN_DEBUG = False + + +def dprn(s, i): +    if GBN_DEBUG: +        print(", " + s + " = " + str(i), end="") + + +def dprns(s): +    if GBN_DEBUG: +        print(", " + s, end="") + + +def dprni(i): +    if GBN_DEBUG: +        print(str(i), end=" ") + + +# S = input() +# N = int(input()) +# S, T = input().split() +H, N = map(int, input().split()) +# W = [input() for _ in range(N)] -ans = 0 -for i in range(N): -    ans += A[i] -if ans >= H: +if sum(A) >= H: