Problem:
 Score : 200 points    Problem Statement Raccoon is fighting with a monster.  The health of the monster is H .  Raccoon can use N kinds of special moves. Using the i -th move decreases the monster's health by A_i .
There is no other way to decrease the monster's health.  Raccoon wins when the monster's health becomes 0 or below.  If Raccoon can win without using the same move twice or more, print Yes ; otherwise, print No .      Constraints  1 \leq H \leq 10^9  1 \leq N \leq 10^5  1 \leq A_i \leq 10^4  All values in input are integers.         Input Input is given from Standard Input in the following format:  H  N  A_1  A_2  ...  A_N       Output If Raccoon can win without using the same move twice or more, print Yes ; otherwise, print No .        Sample Input 1 10 3
4 5 6      Sample Output 1 Yes  The monster's health will become 0 or below after, for example, using the second and third moves.       Sample Input 2 20 3
4 5 6      Sample Output 2 No       Sample Input 3 210 5
31 41 59 26 53      Sample Output 3 Yes       Sample Input 4 211 5
31 41 59 26 53      Sample Output 4 No

Solution (Python):
H,N=map(int,input().split())
A=list(map(int,input().split()))

sum=0

for i in range(N):
    sum+=A[i]

if sum<H:
    print("No")
else:
    print("Yes")

Solution (Python):
f = lambda:map(int,input().split())
h, _ = f()
print('YNeos'[sum(f())<h::2])

Solution (Python):

H,N=map(int, input().split())
A=list(map(int,input().split()))
A.sort(reverse=True)
count=0

for i in range(N):
    count=count+A[i]

if H<=count:
    print("Yes")
else:
    print("No")

Solution (Python):
h,n=map(int,input().split())
s=list(map(int,input().split()))

if sum(s)>=h:
  print("Yes")
else:
  print("No")

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

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

Solution (Python):
H, N = map(int, input().split())
List = [int(x) for x in input().split()]

SumList = sum(List)

if SumList >= H:
    print('Yes')
else:
    print('No')

Solution (Python):
H, N = map(int, input().split())

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

total = sum(A)

if H<=total:
  ans = 'Yes'
else:
  ans = 'No'
  
print(ans)

Solution (Python):
a = list(map(int, input().split()))
b = list(map(int, input().split()))

h = a[0]
n = a[1]

t = sum(b)

if t >= h:
  print('Yes')
else:
  print('No')

Solution (Python):
H, N = [int(x) for x in input().split()]
attacks = [int(x) for x in input().split()]
print("Yes" if H - sum(attacks) <= 0 else "No")

Solution (Python):
h,n=map(int, input().split())
a=list(map(int, input().split()))
asum = sum(a)
if h > asum:
  print("No")
else:
  print("Yes")

Solution (Python):
import sys
read = sys.stdin.read

h,n,*lst=map(int, read().split())
s=sum(lst)
if s>=h:
  print('Yes')
else:
  print('No')

Solution (Python):
h,n = [int(i) for i in input().split()]

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

if h > sum(l):
    print('No')
else:
    print('Yes')

Solution (Python):
h,n=map(int, input().split())
aList=list(map(int, input().split()))
result = h
for a in aList:
  result -= a
print('Yes') if result <= 0 else print('No')

Solution (Python):
H,A = map(int, input().split())
S = list(map(int, input().split()))

if H<=sum(S):
  print("Yes")
else:
  print("No")

Solution (Python):
h,n = map(int,input().split())
a = sum(list(map(int,input().split())))
if h > a:
    print('No')
else:
    print('Yes')

Solution (Python):
h,n = map(int,input().split())
a = list(map(int,input().split()))
if h > sum(a):
    print('No')
else:
    print('Yes')

Solution (Python):
hp, n = map(int, input().split())
kill = list(map(int, input().split()))
total = 0

for i in range(n):
  total += kill[i]

if hp > total:
  print("No")
else:
  print("Yes")

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))

if sum(a) >= h:
  print("Yes")
else:
  print("No")

Solution (Python):
H, N = (int(x) for x in input().split())
A = list(map(int, input().split()))

if H - sum(A) <= 0:
    print("Yes")
else:
    print("No")

Solution (Python):
H,N = list(map(int, input().split()))
A = list(map(int,input().split()))
S=0
for i in range(0,N):
  S=S+A[i]
if H>S:
  print('No')
else:
  print('Yes')

Solution (Python):
h,n = map(int, input().split())
a = list(map(int, input().split()))
if h <= sum(a):
  print("Yes")
else:
  print("No")

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))
a.sort(reverse=True)
d = 0
i = 0

for i in range(n):
    d = d + a[i]

if(d<h):
    print("No")
else:
    print("Yes")

Solution (Python):


[H, N] = [int(i) for i in input().split()]
A = [int(i) for i in input().split()]

if sum(A) >= H:
    print('Yes')
else:
    print('No')

Solution (Python):
H,N = map(int, input().split())
li = list(map(int, input().split()))

ans = "No"

for i in li:
  H -= i

  if H <= 0:
    ans = "Yes"

print(ans)

Solution (Python):
H, N = map(int, input().split())
A_list = list(map(int, input().split()))
total = 0
for A in A_list:
    total += A

if total >= H:
    print('Yes')
else:
    print('No')

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

Solution (Python):

"""
Created on Sun Jan 26 20:58:37 2020

@author: H_Hoshigi
"""

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

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

sum_A = 0
for i in A_list:
    sum_A += i

answer = ""
if H <= sum_A:
    answer = "Yes"
else:
    answer = "No"

print(answer)

Solution (Python):
h,n = map(int,input().split())
a = list(map(int,input().split()))
b = sum(a)
if b >= h:
  print("Yes")
else:
  print("No")

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

Solution (Python):
h, n = map(int,input().split())
A = [int(a) for a in input().split()]

if sum(A)>=h:
    print('Yes')
else:
    print('No')

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))

buf = 0

for i in a:
    buf += i

if buf >= h:
    print("Yes")

else:
    print("No")

Solution (Python):
h,n = map(int,input().split())
a = list(map(int,input().split()))
del a[n::]
if sum(a) >= h:
  print("Yes")
else:
  print("No")

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))
judge = 'No'
for ai in a:
  h -= ai
if h <= 0: judge = 'Yes'
print(judge)

Solution (Python):
H,N = map(int,input().split())
Al = sorted(list(map(int,input().split())))[::-1]

ans = "Yes" if sum(Al[:N])>=H else "No"
print(ans)

Solution (Python):
H, N = map(int, input().split())
A = [int(i) for i in input().split()]

count = 0
for i in range(N):
    count += A[i]
    if count >= H:
        print('Yes')
        exit(0)

print('No')

Solution (Python):
H, N = map(int, input().split())
A = [int(i) for i in input().split()]

if sum(A) >= H:
    print('Yes')
else:
    print('No')

Solution (Python):
h,n = map(lambda x:int(x),input().split())
a_list = list(map(lambda x:int(x),input().split()))

def sum(list):
    s = 0
    for i in range(len(list)):
        s = s+ list[i]
    return s


summ = sum(a_list)



if summ >= h:
    print("Yes")
else:
    print("No")

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))
if sum(a) >= h:
  print("Yes")
else:
  print("No")

Solution (Python):
import numpy as np

H, _ = list(map(int, input().split()))
A = np.array(list(map(int, input().split())))

if H <=A.sum():
  print("Yes")
else:
  print("No")

Solution (Python):

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

_a = sum(a)
if _a < h:
    print("No")
else:
    print("Yes")

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

Solution (Python):
h,n = list(map(int, input().split()))
a = list(map(int, input().split()))

if sum(a) >= h:
    print('Yes')
else:
    print('No')

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

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))

if h <=sum(a):
    print('Yes')
else:
    print('No')

Solution (Python):
"""
NTC here
"""
import sys
inp= sys.stdin.readline
input = lambda : inp().strip()
flush= sys.stdout.flush




def iin(): return int(input())
def lin(): return list(map(int, input().split()))





def main():
    h, n = lin()
    a = lin()
    sm = sum(a)
    print('Yes' if h<=sm else 'No')



            
        

        
main()

Solution (Python):
H, N = [int(n) for n in input().split(' ')]

A = [int(n) for n in input().split(' ')]

A.sort(reverse=True)

for n in A:
  H -= n
  if H <= 0:
    break
if H <= 0:
  print("Yes")
else:
  print("No")

Solution (Python):
h,n=map(int,input().split())
a=list(map(int,input().split()))
set(a)
print("Yes" if h<=sum(a) else "No")

Solution (Python):
h,n = map(int,input().split())
a = list(map(int, input().split()))
a.sort()
sum = 0
for i in range(n-1,-1,-1):
    sum+=a[i]
    if sum>=h:
        print('Yes')
        quit()
print('No')

Solution (Python):
h,n= map(int, input().split())
a = list(map(int, input().split()))
if sum(a)>=h:
    print("Yes")
else:print("No")

Solution (Python):
H,N=map(int, input().split())
l=list(map(int, input().split())) 
if H<=sum(l):
    print("Yes")
else:
    print("No")

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))
if h > sum(a):
	print ("No")
else:
	print ("Yes")

Solution (Python):
h, n = map(int, input().split())
a = list(map(int , input().split()))

if h - sum(a) > 0:
    print('No')
else:
    print('Yes')

Solution (Python):
a,b=list(map(int,input().split(' ')))
c=list(map(int,input().split(' ')))
if (a-sum(c))<=0:
    print('Yes')
else:
    print('No')

Solution (Python):
hn = input().split()
a  = input().split()
h=int(hn[0])
n=int(hn[1])
sum=0
for i in range(n):
 sum+=int(a[i])
if h <= sum:
 print("Yes")
else:
 print("No")

Solution (Python):
h,n = map(int,input().split())
a = list(map(int,input().split()))
if sum(a)>=h:
  print("Yes")
else:
  print("No")

Solution (Python):

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

for i in range(n):
    h -= a[i]
    if h <= 0:
        print("Yes")
        exit()
        

print("No")

Solution (Python):
h, n = map(int, input().split())

m = [i for i in input().split()]

result = 0

for i in m:
    result += int(i)

if result >= h:
    print('Yes')
else:
    print('No')

Solution (Python):
H,N = map(int,input().split())
A = list(map(int,input().split()))
if sum(A) < H:
  print('No')
else:
  print('Yes')

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

Solution (Python):
a=[int(i) for i in input().split()]
b=[int(i) for i in input().split()]
d=0
for i in range(a[1]):
   d+=b[i]

if a[0]-d<=0:
    print('Yes')
else:
    print('No')

Solution (Python):
H, N = map(int, input().split())
As = map(int,input().split())
print('Yes' if sum(As)>=H else 'No')

Solution (Python):



h, k = [int(x) for x in input().split()]



m = [int(x) for x in input().split()]




if h <= sum(m):
  print('Yes')

else:
  print('No')

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

Solution (Python):
h , n = map(int, input().split())
a = [int(i) for i in input().split()]
if sum(a) >= h:
    print('Yes')
else:
    print('No')

Solution (Python):
H, N = map(int,input().split())
A = list(map(int,input().split()))

s = sum(A)
if H <= s:
    print("Yes")
else:
    print("No")

Solution (Python):
[H, N] = map(int, raw_input().split())
A = map(int, raw_input().split())



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

Solution (Python):

"""
Created on Sun Jan 19 20:52:57 2020

@author: over-
"""

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

S=0
for i in range(N):
    S+=int(A[i])

if S>=H:
    print('Yes')
else:
    print('No')

Solution (Python):
inp = input().rstrip().split(" ")
HP = int(inp[0])
N = int(inp[1])
inp = input().rstrip().split(" ")
for i in range(N):
  HP -= int(inp[i])
if HP <= 0:
  print("Yes")
else:
  print("No")

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))
if sum(a)>= h:
    print('Yes')
else:
    print('No')

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))

num = sum(a)

if num >= h:
    print("Yes")
else:
    print("No")

Solution (Python):
def num():
    return int(input())
def nums():
    return list(map(int,input().split()))

import itertools as iter
import math
import fractions
from functools import reduce

def lcm_base(x, y):
    return (x * y) // fractions.gcd(x, y)

def lcm(*numbers):
    return reduce(lcm_base, numbers, 1)

def lcm_list(numbers):
    return reduce(lcm_base, numbers, 1)

H,N = nums()
A = nums()
print("Yes" if sum(A)>=H else "No")

Solution (Python):
h,n=(int(x) for x in input().split())
a=list(map(int,input().split()))
if sum(a)>=h:
    print("Yes")
else:
    print("No")

Solution (Python):
import numpy as np

HN=np.array(input().split(" "),dtype=np.int32)
H=HN[0]
N=HN[1]

A=np.array(input().split(" "),dtype=np.int32)

damage=np.sum(A)

if(H<=damage):
    print("Yes")
else:
    print("No")

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

Solution (Python):
(H, N) = list(map(int, input().split()))
A = list(map(int, input().split()))

if H <= sum(A):
    print('Yes')
else:
    print('No')

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))
total = 0
for i in range(n):
    total += a[i]
if total >= h:
    print('Yes')
else:
    print('No')

Solution (Python):
h,n=(int(x) for x in input().split())
a=[int(x) for x in input().split()]

for i in a:
	h-=i

if h<=0:
	print("Yes")
else:
	print("No")

Solution (Python):
H,N = map(int,input().split())
A = list(map(int,input().split()))

if sum(A) >= H:
    print('Yes')
else:
    print('No')

Solution (Python):
h, n = map(int, input().split())
L = list(map(int, input().split()))
all = 0
for i in range(n):
  all += L[i]
if all >= h:
  print('Yes')
else:
  print('No')

Solution (Python):
a = input().split(" ")
a =[int(i) for i in a]
H = a[0]
N = a[1]

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

for i in b:
    H = H - i

if H<=0:
    print("Yes")
else:
    print("No")

Solution (Python):
h, n = map(int, input().split())
ais = list(map(int, input().split()))
total = 0
for i in range(n):
  total += ais[i]
if total >= h:
  print("Yes")
else:
  print("No")

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

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

if sum(a) >= h:
    print("Yes")
else:
    print("No")

Solution (Python):
H, N = map(int, input().split())
A = list(map(int, input().split()))
num = 0

for i in A:
    num += i

if num >= H:
    print("Yes")
else:
    print("No")

Solution (Python):
H, N = map(int, input().split())

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

if (sum(A) >= H):
    print('Yes')
else:
    print('No')

Solution (Python):
d = input().split(" ")
h = int(d[0])
n = int(d[1])
a = input().split(" ")
s = 0
for i in range(n):
	s += int(a[i])
if s >= h:
	print("Yes")
else:
	print("No")

Solution (Python):
h,n = list(map(int, input().split()))
a = list(map(int, input().split()))

if sum(a) >= h:
    print('Yes')
else:
    print('No')

Solution (Python):
H, N = map(int, input().split())
A = input().split()

for i in A:
  H-=int(i)

if H>0:
  print("No")
else:
  print("Yes")

Solution (Python):
H, N = map(int, input().split())
A = list(map(int, input().split()))

tot = 0
for a in A:
    tot += a

if tot >= H:
    print("Yes")
else:
    print("No")

Solution (Python):


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

a = sorted(a, reverse=True)

if h <= sum(a[:n]):
    print('Yes')
else:
    print('No')

Solution (Python):
def values():
  return [int(x) for x in input().split()]

h,n=values()
a=values()
if h > sum(a):
  print('No')
else:
  print('Yes')

Solution (Python):


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

if sum(skills) >= H:
    print("Yes")
else:
    print("No")

Solution (Python):
h, n = list(map(int, input().split()))
a = list(map(int, input().split()))

if sum(a) >= h:
  print('Yes')
else:
  print('No')

Solution (Python):
h,n = map(int,input().split())
a = list(map(int,input().split()))
if sum(a) >= h:
    print("Yes")
else:
    print("No")

Solution (Python):
a,b=map(int,input().split())
c=sum(list(map(int,input().split())))
if c>=a:
    print ('Yes')
else:
    print ('No')

Solution (Python):
h,a=map(int,input().split())
a = list(map(int,input().split()))
if sum(a)>=h:
    print('Yes')
else:
    print('No')

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))

a.sort(reverse=True)
t = 0
for d in a:
    t += d
    if t >= h:
        print('Yes')
        exit()
print('No')

Solution (Python):
H , N = map(int , input().split())
A = list(map(int,input().split()))

sum = 0
for x in A:
    sum += x

if sum >= H :
    print("Yes")
else:
    print("No")

Solution (Python):
H, N = [int(i) for i in input().rstrip().split(' ')]
A = [int(i) for i in input().rstrip().split(' ')]
print('Yes' if sum(A) >= H else "No")

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))

if h > sum(a):
  print("No")
else:
  print("Yes")

Solution (Python):
import math

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

if sum(A)>=HP:
    print("Yes")
else:
    print("No")

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

Solution (Python):
h, n = list(map(int, input().split()))
a = list(map(int, input().split()))


if sum(a) >= h:
    print('Yes')
else:
    print('No')

Solution (Python):



import pdb
import sys
F = sys.stdin

H,N = map(int,F.readline().split())
a = list(map(int,F.readline().rstrip().split()))
a_sum = 0
for num in a:
    a_sum += num

if a_sum >= H:
    print('Yes')
    sys.exit()

print('No')

Solution (Python):
H,N=map(int,input().split())
A=list(map(int,input().split()))

if sum(A)<H:
  print("No")
else:
  print("Yes")

Solution (Python):
h, n = list(map(int, input().split()))
a = list(map(int, input().split()))
suma = sum(a)
if suma >= h:
    print('Yes')
else:
    print('No')

Solution (Python):
H,N = map(int,input().split())
A = list(map(int,input().split()))

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

Solution (Python):
a,b = map(int , input().split())

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

for kk in range(b):
    a -= x[kk]

if a > 0:
    print("No")
else:
    print("Yes")

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

Solution (Python):
import numpy as np
H, N = map(int, input().split())
A = np.array([int(i) for i in input().split()])

if np.sum(A) >= H:
    print('Yes')
else:
    print('No')

Solution (Python):
n,k=map(int,input().split())
A=list(map(int,input().split()))
print("Yes" if sum(A)>=n else "No")

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))
print("Yes" if sum(a) >= h else "No")

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

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

Solution (Python):
H,N = map(int,input().split())
a= sum(list(map(int,input().split())))

if(a>=H):
    print("Yes")
else:
    print("No")

Solution (Python):
h, k = [ int(v) for v in input().split() ]
skill = [ int(v) for v in input().split() ]

if sum(skill) >= h:
    print("Yes")
else:
    print("No")

Solution (Python):
h, n = map(int,input().split())
A = list(map(int,input().split()))

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

Solution (Python):
H, N = map(int, input().split())
A = list(map(int, input().split()))

if sum(A) >= H:
    print('Yes')
else:
    print('No')

Solution (Python):
h,n= map(int, input().split())
a = list(map(int,input().split()))
if(sum(a) >= h):
    print("Yes")
else:
    print("No")

Solution (Python):
H, N = map(int, input().split())
a = list(map(int, input().split()))

if sum(a) >= H:
    print("Yes")
else:
    print("No")

Solution (Python):
H, N = map(int, input().split())
alist = list(map(int, input().split()))
if sum(alist[i] for i in range(N)) >= H:
  print('Yes')
else:
  print('No')

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))

sum = 0
for i in range(n):
    sum += a[i]

if sum >= h:
    win = True
else:
    win = False

print('Yes' if win else 'No')

Solution (Python):
h, n = map(int, input().split())
total = sum(list(map(int, input().split())))
print("Yes" if total >= h else "No")

Solution (Python):
first = input().split(' ')
health = int(first[0])
skills_count = int(first[1])

second = input().split(' ')
skills = [int(s) for s in second]

if sum(skills) < health:
  print("No")
else:
  print("Yes")

Solution (Python):
h, n = map(int, input().split())
A = map(int, input().split())
out = "Yes" if sum(A) >= h else "No"
print(out)

Solution (Python):
h,n = map(int, input().split())
a = list(map(int, input().split()))
s = sum(a)
if h <= s:print("Yes")
else:print("No")

Solution (Python):
H, N = map(int, input().split(' '))
cnt = sum(map(int, input().split(' ')))
if cnt >= H:
    print('Yes')
else:
    print('No')

Solution (Python):
h,n=map(int,input().split())
A=list(map(int,input().split()))

for a in A:
  h-=a
if h<=0:
  print('Yes')
else:
  print('No')

Solution (Python):
H, N = list(map(int, input().split()))
A = list(map(int, input().split()))

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

Solution (Python):
def main():
    H, N = list(map(int, input().split()))
    A = list(map(int, input().split()))

    A_sum = sum(A)

    if A_sum >= H:
        print('Yes')
    else:
        print('No')

if __name__ == "__main__":
    main()

Solution (Python):
import math
h,n=map(int,input().split())
arr=list(map(int,input().split()))
s=sum(arr)
if s>=h:
	print("Yes")
else:
	print("No")

Solution (Python):
h, n = list(map(int, input().split()))
a = list(map(int, input().split()))

if sum(a) >= h:
  print("Yes")
else:
  print("No")

Solution (Python):
def main():
    h,n=map(int,input().split())
    sa=sum(map(int,input().split()))
    if sa >= h:
        print('Yes')
    else:
        print('No')

main()

Solution (Python):
h,n = map(int, input().split())

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

sa = sum(a)

if sa >= h:
    print("Yes")
else:
    print("No")

Solution (Python):
H, N = [int(i) for i in input().split()]
As = [int(i) for i in input().split()]
print('Yes' if H <= sum(As) else 'No')

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))

for i in a:
    h -= i

if h <= 0:
    print("Yes")
else:
    print("No")

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))

hi = sum(a)

if h>hi:
    print('No')
else:
    print('Yes')

Solution (Python):
h,n=map(int, input().split())
a=list(map(int, input().split()))
if h<=sum(a):
    print('Yes')
else:
    print('No')

Solution (Python):
H, N = map(int, input().split())
A = list(map(int, input().split()))
A = sorted(A, reverse=True)
if H <= sum(A[0:N+1]):
  print("Yes")
else:
  print("No")

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

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

Solution (Python):
def main():
    h, n = map(int, input().split(" "))
    hissatu = [int(s) for s in input().split(" ")]
    total = sum(hissatu)
    if h > total:
        print("No")
    else:
        print("Yes")


if __name__ == '__main__':
    main()

Solution (Python):
h,n=map(int,input().split())
a=list(map(int,input().split()))
if sum(a)>=h:
    print("Yes")
else:
    print("No")

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))
if h > sum(a):
    print('No')
else:
    print('Yes')

Solution (Python):
H, N = map(int, input().split())
A = list(map(int, input().split()))

if sum(A) >= H:
    print("Yes")
else:
    print("No")

Solution (Python):
a,b= map(int, input().split())
S=list(map(int, input().split()))
if a> sum(S):
    print('No')
else:
    print('Yes')

Solution (Python):
h, n = map(int, input().split())
a = map(int, input().split())

if sum(a) >= h:
  print('Yes')
else:
  print('No')

Solution (Python):


import sys
import math


debug = False

def log(text):
    if debug:
        print(text)

def parse_input(lines_as_string = None):

    global debug
    lines = []
    if lines_as_string is None:
        debug = False
        
        
        lines.append(input())
        lines.append(input())
    else:
        debug = True
        lines = [e for e in lines_as_string.split("\n")][1:-1]

    (h, n) = [int(e) for e in lines[0].split(" ")]
    a = [int(e) for e in lines[1].split(" ")]

    return (h, n, a)


def solve(h, n, a):

    total_a = sum(a)
    result = 'No'
    if h <= total_a:
        result = 'Yes'

    return result
    


def main():
    
    result = solve(*parse_input())
    if isinstance(result, list):
        for r in result:
            print("%s" % r, sep='')
    else:
        print("%s" % result, sep='')

if __name__ == '__main__':

    main()

Solution (Python):
from __future__ import print_function

import sys
input = sys.stdin.readline


def eprint(*args, **kwargs):
    print(*args, file=sys.stderr, **kwargs)
    return










import fractions

from fractions import gcd












from queue import Queue






from operator import mul
from functools import reduce






def coprimize(p, q):
    common = fractions.gcd(p, q)
    return (p // common, q // common)


def combinations_count(n, r):
    r = min(r, n - r)
    numer = reduce(mul, range(n, n - r, -1), 1)
    denom = reduce(mul, range(1, r + 1), 1)
    return numer // denom





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

m=sum(a)
if m>=h:
    print("Yes")
else:
    print("No")

Solution (Python):
H,N = list(map(int, input().split()))
A = list(map(int, input().split()))

if sum(A) >= H:
    print('Yes')
else:
    print('No')

Solution (Python):
H, N = map(int, input().split())
A = list(map(int, input().split()))

if H <= sum(A):
    print('Yes')
else:
    print('No')

Solution (Python):
h, n = list(map(int, input().split()))
a = list(map(int, input().split()))
a.sort(reverse=True)

if sum(a[:n]) >= h:
  print('Yes')
else:
  print('No')

Solution (Python):
h,n = map(int,input().split())
a_list = list(map(int,input().split()))

if sum(a_list) >= h:
    print('Yes')
else:
    print('No')

Solution (Python):
h, n = map(int,input().split())
attacks = list(map(int,input().split()))

sa = sum(attacks)

if sa >= h:
  print("Yes")
else:
  print("No")

Solution (Python):
h, n = map(int, input().split())
l = list(map(int, input().split()))

if h - sum(l) <= 0:
    print('Yes')
else:
    print('No')

Solution (Python):
H, N = map(int,input().split())
skills = [int(i) for i in input().split()]
total = 0
for i in range(N):
    total += skills[i]
if H <= total:
    print("Yes")
else:
    print("No")

Solution (Python):
HP, N = map(int, input().split())
lists = list(map(int, input().split()))
if sum(lists) < HP:
    print("No")
else:
    print("Yes")

Solution (Python):
def main():
    H,N = map(int,input().split())
    A = list(map(int,input().split()))
    A = sorted(A,reverse=True)
    if H <= sum(A[:N]):
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    main()

Solution (Python):
a,b = map(int,input().split())
n = sum(map(int,input().split()))
if a <= n:
    print("Yes")
else:
    print("No")

Solution (Python):
h,n = input().split()
H = int(h)
N = int(n)
a = [int(x) for x in input().split()]
total = 0
for i in range(N):
    total += a[i]
if(total >= H):
    print('Yes')
else:
    print('No')

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))
print("Yes" if sum(a) >= h else "No")

Solution (Python):
h,n = map(int, input().split())

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

result="No"
s = 0
for i in a:
    s += i
    if s >= h:
        result = "Yes"
        break

print(result)

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

Solution (Python):
H,N = map(int,input().split())
A = list(map(int,input().split()))
S = sum(A)
if S < H:
    print('No')
else:
    print('Yes')

Solution (Python):
def main():
    H, N = map(int, input().split())
    A = list(map(int, input().split()))

    if sum(A) < H:
        print("No")
    else:
        print("Yes")


if __name__ == "__main__":
    main()

Solution (Python):
h, n = map(int, input().split())
li = list(map(int, input().split()))
if sum(li) >= h:
  print("Yes")
else:
  print("No")

Solution (Python):
import sys


def main():
    h = int(input().replace('\n','').split()[0])
    tmp = input().replace('\n','').split()
    a=0
    for i in tmp:
        a+=int(i)
    if a >= h:
        print("Yes")
    else:
        print("No")

if __name__ == '__main__':
    input = sys.stdin.readline
    main()

Solution (Python):

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

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

Solution (Python):
h, n = [int(i) for i in input().split()]
s = sum([int(i) for i in input().split()])
print("Yes" if h <= s else "No")

Solution (Python):
h, a =map(int,input().split())
a = list(map(int,input().split()))
if h<=sum(a):
    print("Yes")
else:
    print("No")

Solution (Python):
def main():
	a,b = map(int,input().split())
	l = list(map(int,input().split()))
	if sum(l) >= a:
		print("Yes")
	else:
		print("No")



	

if __name__ == '__main__':
	main()

Solution (Python):
def resolve():
    import sys
    input = sys.stdin.readline
    
    H, N = map(int, input().split())
    A = list(map(int, input().split()))

    S = sum(A)
    

    if H - S <= 0:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    resolve()

Solution (Python):
x = input().split()
h = int(x[0])
n = int(x[1])

a = input().split()


d = 0
for i in range(n):
    d += int(a[i])

if d >= h:
    print("Yes")
else:
    print("No")

Solution (Python):
import math

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

if H <= sum(A):
  print('Yes')
else:
  print('No')

Solution (Python):
h,num = map(int,input().split(" "))
attack = list(map(int,input().split(" ")))
    
total = 0
for i in attack:
    total += i


if h - total <= 0:
    print("Yes")
else:
    print("No")

Solution (Python):
a, b = map(int, input().split())
c = list(map(int, input().split()))
d = 0
for i in c:d+=i
if(a <= d):print("Yes")
else:print("No")

Solution (Python):


h, n = map(int, input().split())
a = list(map(int, input().split()))
if sum(a) >= h:
    print("Yes")
else:
    print("No")

Solution (Python):
h, n = map(int,input().split())
a = list(map(int, input().split()))

if sum(a) >= h:
    print("Yes")
else:
    print("No")