_input = input().split()



hp = int(_input[0])

n = int(_input[1])



_input_attack = input().split()



check = 0

for i in range(n):

  check += int(_input_attack[i])

  

if hp <= check:

  print('Yes')

else:

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



S = sum(map(int, input().split()))



if S >= HP:

  print('Yes')

else:

  print('No')
_input = input().split()
hp = int(_input[0])
n = int(_input[1])
_input_attack = input().split()
check = 0
for i in range(n):
    check += int(_input_attack[i])
if hp <= check:
    print("Yes")
else:
    print("No")

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

-_input = input().split() -hp = int(_input[0]) -n = int(_input[1]) -_input_attack = input().split() -check = 0 -for i in range(n): -    check += int(_input_attack[i]) -if hp <= check: +HP, N = list(map(int, input().split())) +S = sum(map(int, input().split())) +if S >= HP: