h, n = list(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')
h, n = list(map(int, input().split()))

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



if sum(a) >= h:

    print('Yes')

else:

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

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

-a_sum = 0 -for a_i in sorted(a, reverse=True): -    a_sum += a_i -    if a_sum >= h: -        print("Yes") -        break +if sum(a) >= h: +    print("Yes")