import sys

input = sys.stdin.readline

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

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

if sum(a) >= H:

  print("Yes")

else: print("No")
import sys

input = sys.stdin.readline

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

sm = sum(list(map(int, input().split())))

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

else: print("No")
import sys

input = sys.stdin.readline
H, N = list(map(int, input().split()))
a = list(map(int, input().split()))
if sum(a) >= H:
    print("Yes")
else:
    print("No")

import sys

input = sys.stdin.readline
H, N = list(map(int, input().split()))
sm = sum(list(map(int, input().split())))
if H <= sm:
    print("Yes")
else:
    print("No")

-a = list(map(int, input().split())) -if sum(a) >= H: +sm = sum(list(map(int, input().split()))) +if H <= sm: