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

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

x=0

for i in range (n):

    x+=a[i]

if x >= h:

    print('Yes')

else:

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

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

if sum(a) >= h:

    print('Yes')

else:

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

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

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