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

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



T = 0

for a in A: #for i in A だとAの要素を繰り返す

    T += a

if T >= H:

    print("Yes")

else:

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

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



if sum(A) >= H:

    print("Yes")

else:

    print("No")
H, N = list(map(int, input().split()))
A = list(map(int, input().split()))
T = 0
for a in A:  # for i in A だとAの要素を繰り返す
    T += a
if T >= H:
    print("Yes")
else:
    print("No")

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

-T = 0 -for a in A:  # for i in A だとAの要素を繰り返す -    T += a -if T >= H: +if sum(A) >= H: