def atc_153b(a: str, b: str) -> str:

    HN = a.split(" ")

    H = int(HN[0])

    N = int(HN[1])



    A = b.split(" ")

    A_int = [int(ai) for ai in A]

    damage = sum(A_int)



    if (H - damage) <= 0:

        return "Yes"

    else:

        return "No"





a = eval(input())

b = eval(input())

print((atc_153b(a, b)))
H,N=list(map(int,input().split()))



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



total = sum(attack)



if H - total <= 0:

    print("Yes")

else:

    print("No")
def atc_153b(a: str, b: str) -> str:
    HN = a.split(" ")
    H = int(HN[0])
    N = int(HN[1])
    A = b.split(" ")
    A_int = [int(ai) for ai in A]
    damage = sum(A_int)
    if (H - damage) <= 0:
        return "Yes"
    else:
        return "No"


a = eval(input())
b = eval(input())
print((atc_153b(a, b)))

H, N = list(map(int, input().split()))
attack = list(map(int, input().split()))
total = sum(attack)
if H - total <= 0:
    print("Yes")
else:
    print("No")

-def atc_153b(a: str, b: str) -> str: -    HN = a.split(" ") -    H = int(HN[0]) -    N = int(HN[1]) -    A = b.split(" ") -    A_int = [int(ai) for ai in A] -    damage = sum(A_int) -    if (H - damage) <= 0: -        return "Yes" -    else: -        return "No" - - -a = eval(input()) -b = eval(input()) -print((atc_153b(a, b))) +H, N = list(map(int, input().split())) +attack = list(map(int, input().split())) +total = sum(attack) +if H - total <= 0: +    print("Yes") +else: +    print("No")