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()))

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

if h > sum(sp):

  print('No')

else:

  print('Yes')

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()))
sp = list(map(int, input().split()))
if h > sum(sp):
    print("No")
else:
    print("Yes")

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