import math



inputs = input().split(" ")

health, moves_num = int(inputs[0]), int(inputs[1])



moves_inp = input().split(" ")

moves = [int(move) for move in moves_inp]



can_win = False



for move in moves:

    health -= move

    if health <= 0:

        can_win = True

        break

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

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

x=sum(A)

print(("Yes" if x>=H else "No"))
import math

inputs = input().split(" ")
health, moves_num = int(inputs[0]), int(inputs[1])
moves_inp = input().split(" ")
moves = [int(move) for move in moves_inp]
can_win = False
for move in moves:
    health -= move
    if health <= 0:
        can_win = True
        break
print(("Yes" if can_win else "No"))

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

-import math - -inputs = input().split(" ") -health, moves_num = int(inputs[0]), int(inputs[1]) -moves_inp = input().split(" ") -moves = [int(move) for move in moves_inp] -can_win = False -for move in moves: -    health -= move -    if health <= 0: -        can_win = True -        break -print(("Yes" if can_win else "No")) +H, N = list(map(int, input().split())) +A = list(map(int, input().split())) +x = sum(A) +print(("Yes" if x >= H else "No"))