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

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

sum = 0

for i in A:

    sum += i

if sum >= H:

    print('Yes')

else:

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

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



if A >= H:

    print('Yes')

else:

    print('No')
H, N = list(map(int, input().split()))
A = list(map(int, input().split()))
sum = 0
for i in A:
    sum += i
if sum >= H:
    print("Yes")
else:
    print("No")

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

-A = list(map(int, input().split())) -sum = 0 -for i in A: -    sum += i -if sum >= H: +A = sum(list(map(int, input().split()))) +if A >= H: