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

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

if sum(arr) >= h: print('Yes')

else: print('No')
In1 = input().split()

h = int(In1[0])

n = int(In1[1])

ith = input().split()[0:n]

count = 0

for x in ith:

    h -= int(x)

    if h <= 0:

        break

if h > 0:

    print("No")

else:

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

In1 = input().split()
h = int(In1[0])
n = int(In1[1])
ith = input().split()[0:n]
count = 0
for x in ith:
    h -= int(x)
    if h <= 0:
        break
if h > 0:
    print("No")
else:
    print("Yes")

-h, n = list(map(int, input().split())) -arr = list(map(int, input().split())) -if sum(arr) >= h: +In1 = input().split() +h = int(In1[0]) +n = int(In1[1]) +ith = input().split()[0:n] +count = 0 +for x in ith: +    h -= int(x) +    if h <= 0: +        break +if h > 0: +    print("No") +else: -else: -    print("No")