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

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

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

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

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

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

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