H,N = list(map(int, input().split()))

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

S = 0

for i in range(0,len(data)):

    S += data[i]



if H > S:

    print("No")

else:

    print("Yes")
H,N = list(map(int, input().split()))



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



if H <= sum(data):

    print('Yes')

else:

    print('No')
H, N = list(map(int, input().split()))
data = list(map(int, input().split()))
S = 0
for i in range(0, len(data)):
    S += data[i]
if H > S:
    print("No")
else:
    print("Yes")

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

-S = 0 -for i in range(0, len(data)): -    S += data[i] -if H > S: +if H <= sum(data): +    print("Yes") +else: -else: -    print("Yes")