# -*- coding: utf-8 -*-

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

a = [int(i) for i in input().split()]



for i in range(n):

    h -= a[i]

if h <= 0:

    print("Yes")

else:

    print("No")

# -*- coding: utf-8 -*-

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

a = [int(i) for i in input().split()]



"""

for i in range(n):

    h -= a[i]

"""



h -= sum(a)

if h <= 0:

    print("Yes")

else:

    print("No")

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

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

+""" +""" +h -= sum(a)