#import sys

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")

        exit()

        #sys.exit(0)



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

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



if h <= sum(a):

	print("Yes")

else:

	print("No")
# import sys
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")
        exit()
        # sys.exit(0)
print("No")

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

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