h, n = list(map(int, input().split()))

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



for i in range(n):

    h -= a[i]



if h <= 0:

    print("Yes")

else:

    print("No")
import sys



sys.setrecursionlimit(10 ** 7)

input = sys.stdin.readline

f_inf = float('inf')

mod = 10 ** 9 + 7





def resolve():

    h, n = list(map(int, input().split()))

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



    print(("Yes" if h <= sum(A) else "No"))





if __name__ == '__main__':

    resolve()

h, n = list(map(int, input().split()))
a = list(map(int, input().split()))
for i in range(n):
    h -= a[i]
if h <= 0:
    print("Yes")
else:
    print("No")

import sys

sys.setrecursionlimit(10**7)
input = sys.stdin.readline
f_inf = float("inf")
mod = 10**9 + 7


def resolve():
    h, n = list(map(int, input().split()))
    A = list(map(int, input().split()))
    print(("Yes" if h <= sum(A) else "No"))


if __name__ == "__main__":
    resolve()

-h, n = list(map(int, input().split())) -a = list(map(int, input().split())) -for i in range(n): -    h -= a[i] -if h <= 0: -    print("Yes") -else: -    print("No") +import sys + +sys.setrecursionlimit(10**7) +input = sys.stdin.readline +f_inf = float("inf") +mod = 10**9 + 7 + + +def resolve(): +    h, n = list(map(int, input().split())) +    A = list(map(int, input().split())) +    print(("Yes" if h <= sum(A) else "No")) + + +if __name__ == "__main__": +    resolve()