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



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

a.sort(reverse=True)



sum = 0

for i in a:

  sum += i

  if sum >= h:

    print('Yes')

    exit()



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

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



if h - sum(a) <= 0:

  print('Yes')

else:

  print('No')
h, n = list(map(int, input().split()))
a = list(map(int, input().split()))
a.sort(reverse=True)
sum = 0
for i in a:
    sum += i
    if sum >= h:
        print("Yes")
        exit()
print("No")

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

-a.sort(reverse=True) -sum = 0 -for i in a: -    sum += i -    if sum >= h: -        print("Yes") -        exit() -print("No") +if h - sum(a) <= 0: +    print("Yes") +else: +    print("No")