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



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





s=sum(a)





ans="Yes" if s>=h else "No"

print(ans)

h,n,*a=list(map(int,open(0).read().split()))

h-=sum(a)

if h>0:

  print("No")

else:

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

h, n, *a = list(map(int, open(0).read().split()))
h -= sum(a)
if h > 0:
    print("No")
else:
    print("Yes")

-h, n = list(map(int, input().split())) -a = list(map(int, input().split())) -s = sum(a) -ans = "Yes" if s >= h else "No" -print(ans) +h, n, *a = list(map(int, open(0).read().split())) +h -= sum(a) +if h > 0: +    print("No") +else: +    print("Yes")