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

a = [int(x) for x in input().split()]

if sum(a) >= h:

    print('Yes')

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 = [int(x) for x in input().split()]
if sum(a) >= h:
    print("Yes")
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 = [int(x) for x in input().split()] +a = list(map(int, input().split()))