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

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



sum = 0

for i in range(n):

	sum += a[i]



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

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



print(('Yes' if sum(a) >= h else 'No'))
h, n = list(map(int, input().split()))
a = [int(i) for i in input().split()]
sum = 0
for i in range(n):
    sum += a[i]
print(("Yes" if h <= sum else "No"))

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

-a = [int(i) for i in input().split()] -sum = 0 -for i in range(n): -    sum += a[i] -print(("Yes" if h <= sum else "No")) +a = list(map(int, input().split())) +print(("Yes" if sum(a) >= h else "No"))