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

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



for i in a:

    h = h-i

if h <= 0:

    print('Yes')

else:

    print('No')

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

if h <= sum(list(map(int, input().split()))):

    print('Yes')

else:

    print('No')

h, n = list(map(int, input().split()))
a = list(map(int, input().split()))
for i in a:
    h = h - i
if h <= 0:
    print("Yes")
else:
    print("No")

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

-a = list(map(int, input().split())) -for i in a: -    h = h - i -if h <= 0: +if h <= sum(list(map(int, input().split()))):