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

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

A=A[::-1]

print(("Yes" if sum(A[0:N])>=H else "No"))
H,N,*A=list(map(int,open(0).read().split()))

print(("Yes" if sum(A)>=H else "No"))
H, N = list(map(int, input().split()))
A = sorted((list(map(int, input().split()))))
A = A[::-1]
print(("Yes" if sum(A[0:N]) >= H else "No"))

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

-H, N = list(map(int, input().split())) -A = sorted((list(map(int, input().split())))) -A = A[::-1] -print(("Yes" if sum(A[0:N]) >= H else "No")) +H, N, *A = list(map(int, open(0).read().split())) +print(("Yes" if sum(A) >= H else "No"))