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

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



for i in range(n):

    h = h - a[i]

    if h <= 0:

        print('Yes')

        exit(0)



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

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

a = sum(a)

if a >= h:

    print('Yes')

else:

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

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

-for i in range(n): -    h = h - a[i] -    if h <= 0: -        print("Yes") -        exit(0) -print("No") +a = sum(a) +if a >= h: +    print("Yes") +else: +    print("No")