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



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



for i in range(n):

    h -= a[i]



if h <= 0:

    print('Yes')

else:

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

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



if h <= sum(a):

    print('Yes')

else:

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

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

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