H, N = [int(x) for x in input().split()]

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

print(("Yes" if H - sum(attacks) <= 0 else "No"))
H,N= list(map(int, input().split()))

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

if sum(AList)>=H:

  print("Yes")

else:

  print("No")
H, N = [int(x) for x in input().split()]
attacks = [int(x) for x in input().split()]
print(("Yes" if H - sum(attacks) <= 0 else "No"))

H, N = list(map(int, input().split()))
AList = list(map(int, input().split()))
if sum(AList) >= H:
    print("Yes")
else:
    print("No")

-H, N = [int(x) for x in input().split()] -attacks = [int(x) for x in input().split()] -print(("Yes" if H - sum(attacks) <= 0 else "No")) +H, N = list(map(int, input().split())) +AList = list(map(int, input().split())) +if sum(AList) >= H: +    print("Yes") +else: +    print("No")