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

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

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

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

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