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

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

at = 0



for i in range(n):

    at = at + a[i]





if at >= h:

    print("Yes")

else:

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

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

at = sum(a)



if at >= h:

    print("Yes")

else:

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

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

-at = 0 -for i in range(n): -    at = at + a[i] +at = sum(a)