# -*- coding:utf-8 -*-

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



for i in map(int, input().split()):

  h -= i

if h <= 0 :

  print("Yes")

else:

  print("No")

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

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



b = sum(a)



if h <= b:

  print('Yes')

else:

  print('No')
# -*- coding:utf-8 -*-
h, n = list(map(int, input().split()))
for i in map(int, input().split()):
    h -= i
if h <= 0:
    print("Yes")
else:
    print("No")

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

-# -*- coding:utf-8 -*- -for i in map(int, input().split()): -    h -= i -if h <= 0: +a = list(map(int, input().split())) +b = sum(a) +if h <= b: