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

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

print(('Yes' if sum(l)>=h else 'No'))
H, N = list(map(int, input().split()))

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

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

H, N = list(map(int, input().split()))
A = sum(map(int, input().split()))
print(("Yes" if H <= A else "No"))

-h, n = list(map(int, input().split())) -l = list(map(int, input().split())) -print(("Yes" if sum(l) >= h else "No")) +H, N = list(map(int, input().split())) +A = sum(map(int, input().split())) +print(("Yes" if H <= A else "No"))