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

Solution (Python):
H, N = map(int, input().split(' '))
A = 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):
    print('No')
else: print('Yes')

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

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

Solution (Python):
from decimal import Decimal
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('No')
else:
    print('Yes')

Solution (Python):



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

sum_a = 0
for a in a_list:
    sum_a += a
if h <= sum_a:
    print("Yes")
else:
    print("No")

Solution (Python):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  

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

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

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

Solution (Python):
import sys
input = sys.stdin.readline

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

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

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

aintlist = input().split(" ")
alist=[]
for i in range(n):
    alist.append(int(aintlist[i]))

max = 0
for i in range(n):
    max = max + alist[i]

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

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

sum=0
for a in A:
    sum+=a
if sum>=H:
    print("Yes")
else:
    print("No")

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

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

Solution (Python):

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

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

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

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

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

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

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

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

ans = "No"
sumA = 0
for a in A:
  sumA += a
  if sumA >= H:
    ans = "Yes"
    break
  
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):
h,n = map(int, input().split())
ls = list(map(int, input().split()))
if sum(ls) >= h:
    print("Yes")
else:
    print("No")

Solution (Python):

import sys
sys.setrecursionlimit(10000000)
INF = 1<<32

YES = "Yes"  
NO = "No"  

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



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    H = int(next(tokens))  
    N = int(next(tokens))  
    A = [int(next(tokens)) for _ in range(N)]  
    solve(H, N, A)

if __name__ == '__main__':
    main()

Solution (Python):
h, n = map(int, input().split())
a = list(map(int, input().split()))
sum_a = sum(a)
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()))
all=int(0)
for i in range(n):
    all+=A[i]
if h<=all:
    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()))

mysum = sum(a)

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

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

Solution (Python):
h, n = map(int, input().split())
techniques = list(map(int, input().split()))
techniques.sort(reverse=True)
if sum(techniques[:n]) >= 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())

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

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

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

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

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

a_sum = 0
for a_i in sorted(a, reverse=True):
    a_sum += a_i
    if a_sum >= h:
        print('Yes')
        break
else:
    print('No')

Solution (Python):
N,H = map(int,input().split())
A = [int(i) for i in input().split()]
B = max(0,N-sum(A))
if B > 0:
    print("No")
else:
    print("Yes")

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

Solution (Python):
x=list(map(int, input().split()))
y=list(map(int, input().split()))
z=int(sum(y))
if z>=x[0]:
	print('Yes')
else:
	print('No')

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

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

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

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

Solution (Python):
H,N=map(int,input().split())
a=[0]*10**5
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):
list = input().split(" ")
H = int(list[0])
skill = input().split(" ")
skill = [int(i) for i in skill]

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

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

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

Solution (Python):
A, gomi = map(int, input().split())
print('Yes' if A <= sum(list(map(int,input().split()))) 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 = 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()))

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

Solution (Python):
h,n=list(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 = sum(A)

if H - Sum <= 0:
    print("Yes")
elif H - Sum > 0:
    print("No")

Solution (Python):
H, _ = map(int, input().split())
l = sum(list(map(int, input().split())))

print('Yes' if l >= H else 'No')

Solution (Python):


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


if __name__ == "__main__":
    solve()

Solution (Python):
h, _, *a = map(int, open(0).read().split())
print("Yes" if sum(a) >= h else "No")

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

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

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

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

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

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

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

Solution (Python):
from math import ceil

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

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

Solution (Python):
from sys import stdin
import math

h, n = [int(x) for x in stdin.readline().rstrip().split()]
a = [int(x) for x in stdin.readline().rstrip().split()]

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

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

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

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')
    break
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 (h-sum(alist)) <= 0:
    print('Yes')
else:
    print('No')

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


if __name__ == "__main__":
    main()

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

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

if __name__ == "__main__":
    main()

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

if (sum(B[:N]) >= 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('No')
else:
  print('Yes')

Solution (Python):
H, N = map(int, input().split())
A = map(int, input().split())
asum = 0
for a in A:
	asum += a
if asum >= 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):
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):
def solve():
    H, K = map(int, input().split())
    A = list(map(int, input().split()))
    return 'Yes' if H <= sum(A) else 'No'

print(solve())

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()))
if sum(a) >= h:
    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())
A = input().split()

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

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

Solution (Python):
H,N=map(int,input().split())
A=sum(list(map(int,input().split())))
print('YNeos'[A<H::2])

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

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

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

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

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

Solution (Python):
helth, num = map(int,input().split())
power = [int(x) for x in input().split()]

if sum(power) >= helth:
    print("Yes")
elif sum(power) < helth:
    print("No")

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

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

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

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

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

damsum = int(sum(dams))

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

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

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

Solution (Python):
h, n, *a = map(int, open(0).read().split())

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


def judge(physical , deathblow , deathblow_list):
    for death in deathblow_list:
        physical = physical - death
    return physical

def main():
    monster_physical , deathblow = map(int , input().split())
    deathblow_list = list(map(int , input().split()))
    remaining = judge(monster_physical , deathblow , deathblow_list)
    if remaining <= 0:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    main()

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

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

Solution (Python):
from sys import stdin


H,N = [int(x) for x in stdin.readline().rstrip().split()]
s = list(map(int,input().split()))

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

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

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

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

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

b = sum(a)

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

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

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

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

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

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



def judge(config , info):
    config = config.split()
    monster_physical = int(config[0])
    deathblow = int(config[1])
    
    info = info.split()
    
    deathblow_num = 0
    for num in info:
        deathblow_num = deathblow_num + int(num)
    
    if monster_physical <= deathblow_num:
        print("Yes")
    else:
        print("No")
    
def main():
    configration = input()
    information = input()
    
    judge(configration , information)
    
if __name__ == "__main__":
    main()

Solution (Python):
A, B = map(int, input().split())
input_list = input().split( )

for i in (range(len(input_list))):
  input_list[i] = int(input_list[i])

input_sum = sum(input_list)

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

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

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

if H > 0:
    ans = "No"
    
print(ans)

Solution (Python):
H,N = map(int,input().split())
data = list(int(i) for i in input().split())
data_s = sum(data)
if H <=data_s:
    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()))

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

print("No")

Solution (Python):
import numpy as np

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

attack = np.sum(A)
if attack >= 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 a:
    sum+=i
if h<=sum:
    print("Yes")
else:
    print("No")

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

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

attack = sum(a)

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

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())
A=list(map(int, input().split()))
i=0
while i < len(A) and H>0:
    H=H-A[i]
    i=i+1
if H>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()))

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

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

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

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

atk = 0
for i in range(b):
    atk = atk + c[i]

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

Solution (Python):
A,B=map(int,input().split())
C=list(input().split())
count= 0
for i in range (B):
	count=count+int(C[i])
if count>=A:
	print("Yes")
else: print("No")

Solution (Python):
A,B=map(int,input().split())
C=list(input().split())
count= 0
for i in range (B):
 count=count+int(C[i])
if count>=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):
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 = map(int, input().split())
if H <= sum(A):
    print('Yes')
else:
    print('No')

Solution (Python):

"""
Created on Tue Mar  3 23:56:09 2020

@author: Kanaru Sato
"""

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

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

if sum < H:
    print("No")
if sum >= H:
    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())
li = [int(x) for x in input().split()]

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

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

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

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

    sum_attack = sum(A)

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

if __name__ == "__main__":
    main()

Solution (Python):
h, n = map(int, input().split())
aListSum = sum(list(map(int, input().split())))
print("YNeos"[h - aListSum > 0::2])

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

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

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

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

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

A = sorted(A,reverse=True)

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

Solution (Python):
from sys import stdin

def main():
    input = stdin.readline

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

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

if __name__ == "__main__":
    main()

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

if h<=sum(l):
    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()))
atk = 0
for i in a :
    atk += i
if atk >= h:
    ans = "Yes"
else:
    ans = "No"
print(ans)

Solution (Python):
h,n = input().split()
a = input().split()
sum = 0
for i in a:
  sum += int(i)

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

Solution (Python):
H, N = tuple(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())
damage = list(map(int,input().split()))

damage.sort(reverse=True)
sum=0
for i in range(N):
    sum+=damage[i]
    if sum>=H:
        print("Yes")
        break
    elif i==N-1:
        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 = [i for i in 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,_ = map(int,input().split())
a = sum(map(int,input().split()))
print((h>a)*"No" or "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())
a = list(map(int, input().split()))

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

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

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

Solution (Python):
count = []
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()))
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()))
print('Yes' if sum(a) >= h else 'No')

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

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

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

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

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

Solution (Python):
h, n = map(int, input().split())
a = 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 = list(map(int,input().split()))
x = 0
for i in range(N):
    x += A[i]

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

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

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