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

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



sum=0

for Ai in A:

  sum += Ai



if sum >= H:

  print('Yes')

else:

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

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

 

if sum(Ai) >= H:

  print('Yes')

else:

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

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

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