H,N= list(map(int,input().split()))

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



x=0



for i in range(N):

    x=x+A[i]



if x>=H:

    print("Yes")

else:

    print("No")
hn = list(map(int,input().split()))

h,n = hn

a = list(map(int,input().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()))
x = 0
for i in range(N):
    x = x + A[i]
if x >= H:
    print("Yes")
else:
    print("No")

hn = list(map(int, input().split()))
h, n = hn
a = list(map(int, input().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())) -x = 0 -for i in range(N): -    x = x + A[i] -if x >= H: +hn = list(map(int, input().split())) +h, n = hn +a = list(map(int, input().split())) +h -= sum(a) +if h > 0: +    print("No") +else: -else: -    print("No")