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

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

cnt = 0

while (H > 0):

    for n in range(N):

        H = H - A[n]

    cnt += 1

if cnt == 1:

    print('Yes')

else:

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

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

for n in range(N):

    H = H - A[n]

if H <= 0:

    print('Yes')

else:

    print('No')
H, N = list(map(int, input().split()))
A = list(map(int, input().split()))
cnt = 0
while H > 0:
    for n in range(N):
        H = H - A[n]
    cnt += 1
if cnt == 1:
    print("Yes")
else:
    print("No")

H, N = list(map(int, input().split()))
A = list(map(int, input().split()))
for n in range(N):
    H = H - A[n]
if H <= 0:
    print("Yes")
else:
    print("No")

-cnt = 0 -while H > 0: -    for n in range(N): -        H = H - A[n] -    cnt += 1 -if cnt == 1: +for n in range(N): +    H = H - A[n] +if H <= 0: