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-----
10 3
4 5 6

-----Sample Output-----
Yes

The monster's health will become 0 or below after, for example, using the second and third moves.

Difficulty: EASY

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


(h, n) = map(int, input().split())
a = list(map(int, input().split()))
print(['No', 'Yes'][h - sum(a) <= 0])


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


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


(health, num) = map(int, input().split())
num_list = [num for num in list(map(int, input().split()))]
for _ in num_list:
	health -= _
if health > 0:
	print('No')
else:
	print('Yes')


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


(H, N) = map(int, input().split())
A = [int(i) for i in input().split()]
print('Yes' if H <= sum(A) else 'No')


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

def hissatu():
	HP = H - sum(A)
	if HP > 0:
		return 'No'
	else:
		return 'Yes'
print(hissatu())


(H, N, *A) = map(int, open(0).read().split())
if sum(A) >= H:
	print('Yes')
else:
	print('No')


(H, N) = map(int, input().split())
print('NYoe s'[H <= sum(map(int, input().split()))::2])


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


R = lambda : map(int, input().split())
(h, n) = R()
print('YNeos'[sum(R()) < h::2])


(h, n, *a) = map(int, open(0).read().split())
print('YNeos'[sum(a) < h::2])


(a, b) = map(int, input().split())
s = sum(map(int, input().split()))
print('Yes' if s >= a else 'No')


(h, n) = map(int, input().split())
aa = map(int, input().split())
print('Yes' if sum(aa) >= h else 'No')


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


(H, N) = map(int, input().split())
A = sum(map(int, input().split()))
print(['No', 'Yes'][H <= A])


(h, n, *a) = map(int, open(0).read().split())
print('NYoe s'[sum(a) >= h::2])


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


(H, M) = list(map(int, input().split()))
A = list(map(int, input().split()))
a = sum(A)
if a >= H:
	ans = 'Yes'
else:
	ans = 'No'
print(ans)


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


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


(h, n) = map(int, input().split())
A = tuple(map(int, input().split()))
print('Yes' if sum(A) >= h else 'No')


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


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


(hp, N) = input().split()
a = input().split()
print('Yes') if sum([int(x) for x in a]) >= int(hp) else print('No')


(h, n) = list(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')


def main():
	(h, n) = list(map(int, input().split()))
	l = [int(v) for v in input().split()]
	total = sum(l)
	if total >= h:
		return 'Yes'
	return 'No'

def __starting_point():
	print(main())
__starting_point()


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


(h, _) = map(int, input().split())
a = list(map(int, input().split()))
print(['Yes', 'No'][sum(a) < h])


(h, _) = map(int, input().split())
a = sum(map(int, input().split()))
print((h > a) * 'No' or 'Yes')


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


(H, n) = map(int, input().split())
print('Yes' if H <= sum(map(int, input().split())) else 'No')


(n, _) = list(map(int, input().split()))
print('YNeos'[sum(map(int, input().split())) < n::2])


(h, n) = list(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')


H = int(input().split()[0])
print('YNeos'[sum([int(x) for x in input().split()]) < H::2])


(h, n) = map(int, input().split())
print('NYoe s'[h <= sum(list(map(int, input().split())))::2])


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


(a, b, *cc) = map(int, open(0).read().split())
if sum(cc) >= a:
	print('Yes')
else:
	print('No')


(h, n) = map(int, input().split())
print('YNeos'[sum([int(i) for i in input().split()]) < h::2])


(A, gomi) = map(int, input().split())
print('Yes' if A <= sum(list(map(int, input().split()))) else 'No')


(H, N) = map(int, input().split())
print('No' if sum([int(_) for _ in input().split()]) < H else 'Yes')


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


(H, M) = map(int, input().split())
attack = list(map(int, input().split()))
if H - sum(attack) <= 0:
	print('Yes')
else:
	print('No')


(hp, n) = map(int, input().split())
a = map(int, input().split())
print('Yes' if sum(a) >= hp else 'No')


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


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


(H, N) = map(int, input().split())
S = sum(map(int, input().split()))
print('YNeos'[H > S::2])


(h, n) = map(int, input().split())
print('YNeos'[sum(map(int, input().split())) < h::2])


print('Yes') if int(input().split()[0]) <= sum(map(int, input().split())) else print('No')


(H, N) = list(map(int, input().split()))
data = list(map(int, input().split()))
if H - sum(data) > 0:
	print('No')
else:
	print('Yes')


import sys
sys.setrecursionlimit(10 ** 8)
ini = lambda : int(sys.stdin.readline())
inl = lambda : [int(x) for x in sys.stdin.readline().split()]
ins = lambda : sys.stdin.readline().rstrip()
debug = lambda *a, **kw: print('\x1b[33m', *a, '\x1b[0m', **dict(file=sys.stderr, **kw))

def solve():
	(h, n) = inl()
	a = inl()
	return sum(a) >= h
print('Yes' if solve() else 'No')


(H, _) = map(int, input().split())
l = sum(list(map(int, input().split())))
print('Yes' if l >= H else 'No')


(h, n) = map(int, input().split())
a = sum(map(int, input().split()))
print(['Yes', 'No'][a < h])


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


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


(N, M) = map(int, input().split())
attack = list(map(int, input().split()))
if sum(attack) >= N:
	print('Yes')
else:
	print('No')


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


(H, N) = [int(x) for x in input().strip().split()]
print('YNeos'[sum([int(x) for x in input().split()]) < H::2])


(h, n) = map(int, input().split())
a = [int(_) for _ in input().split()]
print('YNeos'[h > sum(a)::2])


(h, n) = map(int, input().split())
a = list(map(int, input().split()))
print('YNeos'[sum(a) < h::2])


(h, n) = map(int, input().split())
A = list(map(int, input().split()))
tot = sum(A)
hp = h - tot
if hp <= 0:
	print('Yes')
else:
	print('No')


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


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


(h, n) = map(int, input().split())
A = list(map(int, input().split()))
print('YNeos'[sum(A) < h::2])


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


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


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


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


(x, y) = map(int, input().split())
a = list(map(int, input().split()))
print('Yes' if sum(a) >= x else 'No')


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


(h, n) = [int(i) for i in input().split()]
l = [int(i) for i in input().split()]
print(['No', 'Yes'][h <= sum(l)])