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

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

total = 0

for i in range(n):

  total += a[i]

if total >= h:

  print("Yes")

else:

  print("No")
h, n = list(map(int, input().split()))

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



aa = sum(a)



if aa >= h:

  print("Yes")

else:

  print("No")
h, n = list(map(int, input().split()))
a = list(map(int, input().split()))
total = 0
for i in range(n):
    total += a[i]
if total >= h:
    print("Yes")
else:
    print("No")

h, n = list(map(int, input().split()))
a = list(map(int, input().split()))
aa = sum(a)
if aa >= h:
    print("Yes")
else:
    print("No")

-total = 0 -for i in range(n): -    total += a[i] -if total >= h: +aa = sum(a) +if aa >= h: