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):
import sys
input = sys.stdin.readline


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


if __name__ == '__main__':
    main()

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

Solution (Python):
H, N = [int(x) for x in input().split()]
A = [int(x) for x 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()))

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) <= 0:
    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):
import numpy as np
h, n = map(int, input().split())
a = list( map(int, input().split()) )
a = np.array(a)
if a.sum() < h:
    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 = (int(x) for x in input().split())

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

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

Solution (Python):
H,A=map(int,input().split())
S=list(map(int,input().split()))
if H-sum(S)<=0:
    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("No")
else:
    print("Yes")

Solution (Python):
a,b=map(int,input().split())
List=list(map(int,input().split()))
if a<=sum(List):
  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()))
total = sum(A)
if total >= h:
    print("Yes")
else:
    print("No")

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

Solution (Python):
H, N = map(int, input().split())
List = list(map(int, input().split()))
List.sort()
List.reverse()


i=0
while i<N:
    H-=List[0]
    del List[0]
    i+=1
    
if H<=0:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):
import sys
import math
import bisect

def main():
    m, n = map(int, input().split())
    A = list(map(int, input().split()))
    if sum(A) >= m:
        print('Yes')
    else:
        print('No')

if __name__ == "__main__":
    main()

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

SA = sum(A)


if H <= SA:
    print("Yes")

elif H > SA:
    print("No")

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

Solution (Python):
H, N = map(int, input().split(' '))
A = tuple(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()))
sumcheck = 0
for i in range(0, N):
    sumcheck += A[i]
if sumcheck >= 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())
lis = list(map(int, input().split()))

sumlis = sum(lis)
if h > sumlis:
  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()))
if sum(A)>=H:
  print("Yes")
else:
  print("No")

Solution (Python):
import fileinput

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())
l = map(int, input().split())
for i in l:
  h=h-i
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):
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_list = list(map(int, input().split()))
a_sum = sum(A_list)
if H - a_sum <= 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):
import sys

input = sys.stdin.readline


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

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


if __name__ == "__main__":
    main()

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):
import functools
H, N = list(map(int,input().split()))
A = list(map(int,input().split()))
sum = functools.reduce(lambda x,y: x+y,A)
if sum >= 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):
array = []

for i in range(2):
    val = [int(s) for s in input().split()]
    array.append(val)

H = array[0][0]
A = array[1]

for i in A:
    H = H - i

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

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

for i in range(len(a)):
	h -= a[i]
	
if h <= 0:
	print('Yes')
else:
	print('No')

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

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

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

Solution (Python):
M,N = list(map(int,input().split()))
s = list(map(int,input().split()))
 
if M <= sum(s):
    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('No')
else:
    print('Yes')

Solution (Python):

"""
Created on Fri May  8 15:17:01 2020

@author: shinba
"""

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("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:
        break
        
if H <= 0:
    print("Yes")
else:
    print("No")

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

Solution (Python):
from sys import stdin, setrecursionlimit


def main():
    h, n = map(int, stdin.readline().split())
    a = list(map(int, stdin.readline().split()))
    print('Yes') if sum(a) >= h else print('No')


if __name__ == "__main__":
    setrecursionlimit(10000)
    main()

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

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

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


if __name__ == '__main__':
    solve()

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


if __name__ == '__main__':
    solve()

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

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

for i in range(0,N,1):
    H -= A[i]
    if H <= 0:
        print("Yes")
        exit()

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()))

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):
x = list(map(int, input().split()))
a = list(map(int, input().split()))
hp = x[0]
for i in a:
  hp -= 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()))

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

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

for a in a_list:
    h -= a

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

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

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

Solution (Python):
import math

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

for i in range(len(A)):
  H -= A[i]
  if H <= 0:
    print('Yes')
    break
else:
  print('No')

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

Solution (Python):
h,n = map(int,input().split())
a_sum = sum(list(map(int,input().split())))
print(['No','Yes'][a_sum >= h])

Solution (Python):
il1 = [int(k) for k in input().split()]
A = [int(k) for k in input().split()]
H = il1[0]
N = il1[1]

tmp = H
for a in A:
    H = H - a

if H <= 0:
    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 = 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()]

for a in A:
    H -= a

print('Yes' if H <= 0 else '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):
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop
from itertools import permutations, accumulate
from math import sqrt, ceil, floor, factorial
from bisect import bisect_left, bisect_right
from copy import deepcopy
from operator import itemgetter
from fractions import gcd
import sys
def I(): return int(input())  
def Is(): return map(int, input().split())  
def LI(): return list(map(int, input().split()))  
def TI(): return tuple(map(int, input().split()))  
def IR(n): return [I() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def TIR(n): return [TI() for _ in range(n)]
def S(): return input()
def Ss(): return input().split()  
def LS(): return list(input())  
def SR(n): return [S() for _ in range(n)]
def SsR(n): return [Ss() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
sys.setrecursionlimit(1000000)
MOD = 1000000007
INF = float('inf')

h, n = Is()
A = LI()
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()))

for i in range(N):
  H = H - A[i]

if H <= 0:
  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=list(map(int, input().split()))
print('Yes' if h<=sum(a) else ('No'))

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

print("Yes" if sum(A)>=H else "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())
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()))

x = sum(A)

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

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

A = list(input().split())
A = [int(A[i]) for i in range(N)]

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

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, n = map(int, input().split())
a = list(map(int, input().split()))
print("Yes" if h <= sum(a) else "No")

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

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

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

print(["No","Yes"][sum(a) >= h])

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

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

sum = 0
for i in range(len(As)):
    sum += As[i]

if sum >= h:
    print("Yes")
else:
    print("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("No")
else:
    print("Yes")

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

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

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

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

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))
s = sum(a)
print ("Yes") if s >= h 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())
L=list(map(int,input().split()))
a=sum(L)
if H>a:
  print('No')
else:
  print('Yes')

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

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

if H - sum <= 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()))
print("Yes" if h<=sum(a) else "No")

Solution (Python):

import sys
from collections import Counter
from itertools import permutations, combinations
from fractions import gcd

from math import ceil, floor
import bisect
sys.setrecursionlimit(10 ** 6)
inf = float("inf")

def input():
    return sys.stdin.readline()[:-1]

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

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()))

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

Solution (Python):
h,n=map(int,input().split())
A=list(map(int,input().split()))
print('Yes' if h<=sum(A) else '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 solve():
    h, n = map(int, input().split())
    total = sum(list(map(int, input().split())))
    return "Yes" if total >= h else "No"

print(solve())

Solution (Python):
h, n  = map(int, input().split())
a  = list(map(int, input().split()))
'''
n = input()
a = [int(input()) for i in range(n)]
'''
'''
n,m = map(int, input().split())
a = [list(map(int, input().split())) for _ in range(m)]
'''



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 = list(map(int, input().split()))
A = list(map(int, input().split()))

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

Solution (Python):

"""
from sys import stdin
n = int(stdin.readline().rstrip())
data = [stdin.readline().rstrip().split() for _ in range(n)]
print(data)
print(*data, sep='\n')
"""


"""
s =input()
s=list(input())
a=int(input())
x,y = map(int,input().split())	
li = input().split()	
li = list(map(int,input().split()))	
li = input().split('T')	
"""

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 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 h - sum(a) <=0:

    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()))

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

Solution (Python):

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

Solution (Python):
h,n=map(int,input().split())
a=list(map(int,input().split()))
b=sum(a)
if b<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):
INT_MAX=10**11+7
MOD=10**9+7
def INPUT():return list(int(i) for i in input().split())
def LIST_1D_ARRAY(n):return [0 for _ in range(n)]
def LIST_2D_ARRAY(m,n):return [[0 for _ in range(n)]for _ in range(m)]

import math as M
h,n=INPUT()
A=INPUT()
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()))
print("Yes") if H <= sum(A) else print("No")

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()

def resolve():
    h,n=map(int, input().split())
    l=list(map(int,input().split()))
    if sum(l)>=h:
        print('Yes')
    else:
        print('No')
resolve()

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()))


k = sum(a)
print(["No","Yes"][k>=h])

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):
n, k = map(int, input().split())
a = list(map(int,input().split()))

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

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

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

Solution (Python):
h,n=map(int,input().split())
a = list(map(int,input().split()))
count = 0
while h > 0 and len(a) > count:
    h -= a[count]
    count+=1
if h > 0:
    print('No')
else:
    print('Yes')

Solution (Python):
H,N = 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 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):
import math
monsterHP, araiN = map(int, input().split())
araiSum = sum(list(map(int, input().split())))

if monsterHP <= araiSum:
    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=[int(i)for i in input().split()]
A=[int(i)for i in input().split()]
print("Yes" if sum(sorted(A)[:N])>=H else "No")

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

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

if 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):
import sys
import os
import math
import string
import collections

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
fl = lambda: list(map(float, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
sl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]

lcm = lambda x, y: x * y / math.gcd(x, y)

MOD = 10 ** 9 + 7
MAX = float('inf')


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    H, N = il()
    A = il()
    print('Yes' if H <= sum(A) else 'No')


if __name__ == '__main__':
    main()

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

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

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

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

Damages =sum(Attacks)

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

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

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

Solution (Python):
x,y = map(int,input().split())
li = list(map(int,input().split()))
if x - sum(li) <= 0:
    print("Yes")
else:
    print("No")

Solution (Python):
import numpy as np
h, n = map(int,input().split())
a = np.array(input().split(),dtype=int)
sum = 0
for i in a:
    sum += i
if h > sum:
    print("No")
else:
    print("Yes")

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('No')
else:
  print('Yes')

Solution (Python):

H, N = map(int, input().split())
A = list(map(int, input().split()))
for Ai in A:
    H -= Ai
if H <= 0:
    print("Yes")
else:
    print("No")

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

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

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

for i in range(n):
  sum += an[i]
  
if h<=sum :
  print("Yes")
else:
  print("No")

Solution (Python):
import math

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(i) for i in input().split()]

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

Solution (Python):

def inputlist(): return [int(k) for k in input().split()]

H,N = inputlist()
A = inputlist()
s = sum(A)
if s >= H:
    print("Yes")
else:
    print("No")

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

K = sum(A)

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

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

d = sum(c)

if a <= d:
  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 = 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()))
print('Yes' if h<=sum(a) else 'No')

Solution (Python):
import sys
h, n = map(int, sys.stdin.readline().split())
li = list(map(int, sys.stdin.readline().split()))
if h > sum(li):
  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())
A = list(map(int,input().split()))
if H <= sum(A):
    print('Yes')
else:
    print('No')

Solution (Python):
H,N = map(int,input().split())
alist = list(map(int,input().split()))
p = 0
for i in range(N):
    p = p + alist[i]
if H <= p:
    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):
f=lambda:map(int,input().split())
h,_=f()
s=sum(f())
print('YNeos'[h-s>0::2])

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())
n=list(map(int,input().split()))
if a<=sum(n):
  print('Yes')
else:
  print('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):


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")
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 = (int(x) for x in input().split())
a_list = [int(i) for i in input().split()]

atk = sum(a_list)

if h>atk:
    print("No")
else:
    print("Yes")

Solution (Python):
h,n=map(int,input().split())
a=list(map(int,input().split()))
print("Yes") if h<=sum(a) 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 0>=h:
    print("Yes")
else:
    print("No")

Solution (Python):
h,n = map(int,input().split())
z = input()
a = z.split()
c = 0
for b in a:
  c += int(b)
if h > c:
  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):
monster_hp ,kind = map(int,input().split())
li = list(map(int,input().split()))
if sum(li) >=monster_hp:
  print("Yes")
else:
  print("No")

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

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

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

Solution (Python):
l = [int(x) for x in input().split()]
m = [int(x) for x in input().split()]
H, N = l[0], l[1]

A = sum(m)

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

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

for i in y:
  h -= int(i)
  
if h > 0:
  print("No")
else:
  print("Yes")

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

Solution (Python):
H=[int(y) for y in input().split()]
A=[int(y) for y in input().split()]
if H[0]<=sum(A):
   print("Yes")
else:
   print("No")

Solution (Python):
hp,bp=map(int,input().split())
attacks=list(map(int,input().split()))
if hp>sum(attacks):
  print("No")
else:
  print("Yes")