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, *A = map(int, open(0).read().split())
print("Yes") if H <= sum(A) else print("No")

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

print('Yes') if sum(a)>=h 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()))
flag = False

for a in A:
  h -= a
  if h<=0:
    flag = True
    break

print("Yes" if flag else "No")

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

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

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

for move in a:
    move = int(move)
    attack.append(move)

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

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

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

if H - sum(data) > 0:
    print('No')
else:
    print('Yes')

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

x = sum(a)

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

Solution (Python):







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

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

Solution (Python):







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

if H - sum(data) > 0:
    print('No')
else:
    print('Yes')

Solution (Python):
h,n = map(int,input().split())
xlist = list(map(int,input().split()))
if sum(xlist)>=h:
  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 = map(int, input().split())

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

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

Solution (Python):
h, n, *a = map(int, open(0).read().split())
print(["No", "Yes"][h <= sum(a)])

Solution (Python):
h, n, *a = map(int, open(0).read().split())
print(["No", "Yes"][h <= sum(a)])

Solution (Python):
import numpy as np

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

if H<=np.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) <= 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 = map(int,input().split())
a = map(int,input().split())

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

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

if sum(i) >= 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()))
sum=0
for i in range(len(A)):
    sum+=A[i]
if H<=sum :
    print("Yes")
else:
    print("No")

Solution (Python):

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

Total_attack = sum(A)

if H - Total_attack <= 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()))

answer = sum(A)

if answer >= 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()))
answer = sum(A)

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

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

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

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

a = (sum(A))

if a >= H:
    ans = "Yes"
else:
    ans = "No"

print(ans)

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 bisect, collections, copy, heapq, itertools, math, string
import sys
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int, sys.stdin.readline().rstrip().split())
def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())

from  collections import defaultdict
from collections import Counter
import bisect
from functools import reduce

def main():
    H, N = MI()
    A = LI()
    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())
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()))
hitpoint=h
atack = a[:]
for e in atack:
    hitpoint -= e
    if hitpoint <= 0:
        break
if hitpoint <= 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):
h,n = map(int,input().split())
a = list(map(int,input().split()))
ans = 0
sum_a = sum(a)
  
if(sum_a >= h):
  print("Yes")
else:
  print("No")

Solution (Python):
H, N = map(int, input().split())
A_list = []
for i in range(1, N+1):
    A_list.append("A_" + str(i))

A_list = map(int, input().split())
A_total = sum(A_list)

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

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

Solution (Python):







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

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

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

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

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

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

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

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

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

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

if H - A1 <= 0:
    print('Yes')
else:
    print('No')

Solution (Python):
'''
問題：
    アライグマはモンスターと戦っています。

    モンスターの体力は H です。
    アライグマは N 種類の必殺技を使うことができ、
    i 番目の必殺技を使うとモンスターの体力を Ai 減らすことができます。
    必殺技を使う以外の方法でモンスターの体力を減らすことはできません。

    モンスターの体力を 0 以下にすればアライグマの勝ちです。

    アライグマが同じ必殺技を
    2 度以上使うことなくモンスターに勝つことができるなら Yes を、
    できないなら No を出力してください。
'''

'''
制約：
    1 ≦ H ≦ 1000000000
    1 ≦ N ≦ 100000
    1 ≦ Ai ≦ 10000
    入力中のすべての値は整数である。
'''


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


hissatsu_hp = 0
for i in range(0, m):
    hissatsu_hp += a[i]


result = ""
if hissatsu_hp >= h:
    result = "Yes"
else:
    result = "No"

print(result)

Solution (Python):



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

if H <= sum(my_list):
    answer = 'Yes'
else:
    answer = 'No'

print(answer)

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

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

if H - a_sum <= 0:
    print('Yes')
else:
    print('No')

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

if H-A1<=0:
    print('Yes')
else:
    print('No')

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

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

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

Solution (Python):
str = input()
str2 = input()
nums  = str.split()
nums2  = str2.split()
if len(nums2) != int(nums[1]):
    print("error")
else:
   totalDamege = 0
   for num in nums2:
       totalDamege += int(num)
   if int(nums[0]) <= totalDamege:
       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()))
A1 = sum(A)

if H - A1 <= 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 = sum(list(map(int,input().split())))

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

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

for i in range (0, N):
    H -= lst[i]

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

Solution (Python):







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

total_damege = sum(damege)

if H - total_damege <= 0:
    print('Yes')
else:
    print('No')

Solution (Python):









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





def hp(h: int, n: int, A: list) -> str:
    damage = 0                   
    for i in range(0, n):        
        damage += int(A[i])      
        i += 1                   

    if (h - damage) <= 0:     
        return 'Yes'
    else:              
        return 'No'


print(hp(h, n, A))

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





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

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

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

total = sum(attack)

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

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

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


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

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

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

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


def answer(H: int, N: int, A: list) -> str:
    damage = 0                          
    for i in range(0, N):               
        damage += int(A[i])             
                                        
        i += 1                          
    if damage < H:
        return 'No'
    else:
        return 'Yes'

print(answer(H, N, A))

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

result = sum(a)

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

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

if h - sum(attack) <= 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):
hp,sp = input().split(" ")
hp = int(hp)
sp = int(sp)
attack = input().split(" ")
damage = 0

for i, new in enumerate(attack):
    attack[i] = int(attack[i])

for i in range(0,sp):
    damage += attack[i]

if damage >= hp:
    print("Yes")

else:
    print("No")

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


for i in list:
    H=H-i

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

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


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

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

rest_H = H - sum(A)

if rest_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("No")

else:
    print("Yes")

Solution (Python):

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

answer = H - sum(A)

if answer <= 0:
    print('Yes')
else:
    print('No')

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

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

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

Solution (Python):



hp_m, n = map(int, input().split())
attack = list(map(int, input().split()))

total_attack = sum(attack)

if total_attack >= hp_m:
    print("Yes")
else:
    print("No")

Solution (Python):

S_list = [(input()) for i in range(2)]
H,N = map(int,S_list[0].split())
S_list_1 = list(map(int,S_list[1].split()))
damage = sum(S_list_1)
if damage >= H:
    result = "Yes"
else:
    result = "No"
print(result)

Solution (Python):








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


rest_H = H - sum(A)

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


h = h - sum(a)

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

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


h = h - sum(a)

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 H <= attack:
    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()))
hissatsu = 0

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

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

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

for i in range(0, N):
    H -= N_list[i]

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

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

if sum(waza) >= 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()))



h = h - sum(a)

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 = 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 = []
for i in range(1, N+1):
    A_list.append("A_" + str(i))

A_list = map(int, input().split())
A_total = sum(A_list)

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

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

answer = sum(A)

if H <= answer:
    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())
C = list(map(int,input().split()))
s = 0
for i in range(N):
    s += C[i]
r = H - s
if r <= 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):

def main():
    H, _ = map(int, input().split())
    offence = sum([int(x) for x in input().split()])
    print('Yes' if H <= offence else 'No')


if __name__ == '__main__':
    main()

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

if H <= sum(special_move):
    result = 'Yes'
else:
    result = 'No'

print(result)

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

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

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

Solution (Python):
def answer(h: int, n: int, a: []) -> str:
    return 'Yes' if h <= sum(a) else 'No'


def main():
    h, n = map(int, input().split())
    a = map(int, input().split())
    print(answer(h, n, a))


if __name__ == '__main__':
    main()

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

if H-A1<=0:
    print('Yes')
else:
    print('No')

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

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


def answer(H: int, N: int, A: list) -> str:
    damage = 0                          
    for i in range(0, N):               
        damage += int(A[i])             
                                        
        i += 1                          
    if damage < H:
        return 'No'
    else:
        return 'Yes'

print(answer(H, N, A))

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

S = H - sum(A)

if S <= 0:
    print('Yes')

else:
    print('No')

Solution (Python):
H, N = map(int, input().split())
A_list = []
for i in range(1, N+1):
    A_list.append("A_" + str(i))

A_list = map(int, input().split())
A_total = sum(A_list)

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

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

A_list = []
for i in range(1, N+1):
    A_list.append("A_" + str(i))
A_list = map(int,input().split())

Total =sum(A_list)

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

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


def answer(H: int, N: int, A: list) -> str:
    damage = 0                          
    for i in range(0, N):               
        damage += int(A[i])             
                                        
        i += 1                          
    if damage < H:
        return 'No'
    else:
        return 'Yes'

print(answer(H, N, A))

Solution (Python):
H, N = map(int, input().split())
A_list = []
for i in range(1, N+1):
    A_list.append("A_" + str(i))

A_list = map(int, input().split())
A_total = sum(A_list)

if A_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 = [int(i) for i in input().split()]
a = [int(i) for i in input().split()]
if h <= sum(a):
  print('Yes')
else:
  print('No')

Solution (Python):





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




if sum(f)>=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()))

answer = H - sum(A)

if answer <= 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=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("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()))


def answer(H: int, N: int, A: list) -> str:
    damage = 0
    for i in range(0, N):
        damage += int(A[i])
        i += 1
    if damage < H:
        return 'No'
    else:
        return 'Yes'

print(answer(H, N, A))

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

Solution (Python):


import random

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

if (1 <= H, H <= 10 ** 9) and (1 <= N, N <= 10 ** 5):
    for j in range(len(A)):
        H -= A[j]
    if H <= 0:
        print('Yes')
    if H > 0:
        print('No')

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

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

Solution (Python):
H, N = map(int, input().split())
special_move = input().split()
def answer(H: int, N: int, special_move: list) -> str:
    damage = 0
    for i in range(0, N):
        damage += int(special_move[i])
    if damage >= H:
        return 'Yes'
    else:
        return 'No'
print(answer(H, N, special_move))

Solution (Python):
H, N = map(int, input().split())
special_move = input().split()
def answer(H: int, N: int, special_move: list) -> str:
    damage = 0
    for i in range(0, N):
        damage += int(special_move[i])
    if damage >= H:
        return 'Yes'
    else:
        return 'No'
print(answer(H, N, special_move))

Solution (Python):
health, attack = map(int, input().split())
damage = list(map(int, input().split()))
if health <= sum(damage):
    print('Yes')
else:
    print('No')

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

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

Solution (Python):

monster_hp, quantity_of_skills = map(int, input().split())
skills = map(int, input().split())
skills_list = list(skills)


total_damages = 0
for i in skills_list:
    total_damages += i

if monster_hp <= total_damages:
    print('Yes')
else:
    print('No')

Solution (Python):

import sys
from itertools import chain

YES = "Yes"  
NO = "No"  


def solve(H: int, N: int, A: "List[int]"):
    if H <= sum(A):
        return YES
    else:
        return NO


def main():
    tokens = chain(*(line.split() for line in sys.stdin))
    H = int(next(tokens))  
    N = int(next(tokens))  
    A = [int(next(tokens)) for _ in range(N)]  
    answer = solve(H, N, A)
    print(answer)


if __name__ == "__main__":
    main()

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

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

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

if a[0]<= sum(b):
    print("Yes")
else:
    print("No")

Solution (Python):





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

if a[0]<=sum(b):
    print("Yes")
else:
    print("No")

Solution (Python):
H, N = map(int, input().split())
A = sorted(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()))
a.sort(reverse=True)
temp = 0
ans = "No"
for i in a:
    temp += i 
    if temp>=h:
        ans = "Yes"
        break
print(ans)

Solution (Python):
hp, count_skills = map(int, input().split())
a = map(int, input().split())
skills_list = list(a)

for skill in skills_list:
    hp -= skill
    if hp <= 0:
        print('Yes')
        break
if hp >= 1:
    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 atc_153b(a: str, b: str) -> str:
    HN = a.split(" ")
    H = int(HN[0])
    N = int(HN[1])

    A = b.split(" ")
    A_int = [int(ai) for ai in A]
    damage = sum(A_int)

    if (H - damage) <= 0:
        return "Yes"
    else:
        return "No"


a = input()
b = input()
print(atc_153b(a, b))

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

Solution (Python):
from sys import exit

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

for i in range(N):
  sum+=A[i]
  
if H-sum<=0:
  print("Yes")
else:
  print("No")

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

Solution (Python):
HP, n = map(int,input().split())
a = list(map(int,input().split()))
count = 0

for i in a:
  count += i
if count >= HP:
  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 (H - sum) <= 0:
    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('Yes')
else:
    print('No')

Solution (Python):
H,N = map(int, input().split())
data = list(map(int, input().split()))
S = 0
for i in range(0,len(data)):
    S += data[i]

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

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

Solution (Python):


def atc_153b(a: str, b: str) -> str:
    HN = a.split(" ")
    H = int(HN[0])
    N = int(HN[1])

    A = b.split(" ")
    A_int = [int(ai) for ai in A]
    damage = sum(A_int)

    if (H - damage) <= 0:
        return "Yes"
    else:
        return "No"


a = input()
b = input()
print(atc_153b(a, b))

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

if __name__ == "__main__":
    main()

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

a1=sum(a)
if(a1>=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())
A = list(map(int, input().split()))
atk = 0
for i in A:
    atk += i
if H > atk:
    print("No")
else:
    print("Yes")

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

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

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

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

Solution (Python):

hp,n = map(int,input().split())
damage_list = list(map(int,input().split()))


damage_sum = sum(damage_list)
if damage_sum >= hp:
    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")