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

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

total = sum(A)

if H > total:

    ans = "No"

else:

    ans = "Yes"

print(ans)

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

atk = sum(map(int,input().split()))

if atk>=H:

  print("Yes")

else:

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

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

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