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

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

for i in A:

    H -= i

    if H < 1:

        print('Yes')

        exit()

print('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 = list(map(int, input().split()))
for i in A:
    H -= i
    if H < 1:
        print("Yes")
        exit()
print("No")

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

-for i in A: -    H -= i -    if H < 1: -        print("Yes") -        exit() -print("No") +print(("Yes" if sum(A) >= H else "No"))