H,N=input().split()

H=int(H)

N=int(N)



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



count=0

for i in range(N):

  count+=A[i]



if count>=H:

  print("Yes")

else:

  print("No")
# coding: utf-8

# Your code here!





h,a=list(map(int,input().split()))

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

sum_A=sum(A)

if h>sum_A:

    print("No")



else:

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

# coding: utf-8
# Your code here!
h, a = list(map(int, input().split()))
A = list(map(int, input().split()))
sum_A = sum(A)
if h > sum_A:
    print("No")
else:
    print("Yes")

-H, N = input().split() -H = int(H) -N = int(N) +# coding: utf-8 +# Your code here! +h, a = list(map(int, input().split())) -count = 0 -for i in range(N): -    count += A[i] -if count >= H: +sum_A = sum(A) +if h > sum_A: +    print("No") +else: -else: -    print("No")