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

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



ans = "No"

sumA = 0

for a in A:

  sumA += a

  if sumA >= H:

    ans = "Yes"

    break

  

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

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



ans = "No"

if sum(A) >= H:

  ans = "Yes"

  

print(ans)
H, N = list(map(int, input().split()))
A = list(map(int, input().split()))
ans = "No"
sumA = 0
for a in A:
    sumA += a
    if sumA >= H:
        ans = "Yes"
        break
print(ans)

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

-sumA = 0 -for a in A: -    sumA += a -    if sumA >= H: -        ans = "Yes" -        break +if sum(A) >= H: +    ans = "Yes"