from math import ceil

N = int(eval(input()))

L = [int(eval(input())) for k in range(5)]

ans = 5

for k in range(5):

    ans = max(ans,4+ceil(N/L[k]))

print(ans)

from math import ceil

N = int(eval(input()))

A = int(eval(input()))

B = int(eval(input()))

C = int(eval(input()))

D = int(eval(input()))

E = int(eval(input()))

L = [A,B,C,D,E]

m = min(L)

print((4+ceil(N/m)))

from math import ceil

N = int(eval(input()))
L = [int(eval(input())) for k in range(5)]
ans = 5
for k in range(5):
    ans = max(ans, 4 + ceil(N / L[k]))
print(ans)

from math import ceil

N = int(eval(input()))
A = int(eval(input()))
B = int(eval(input()))
C = int(eval(input()))
D = int(eval(input()))
E = int(eval(input()))
L = [A, B, C, D, E]
m = min(L)
print((4 + ceil(N / m)))

-L = [int(eval(input())) for k in range(5)] -ans = 5 -for k in range(5): -    ans = max(ans, 4 + ceil(N / L[k])) -print(ans) +A = int(eval(input())) +B = int(eval(input())) +C = int(eval(input())) +D = int(eval(input())) +E = int(eval(input())) +L = [A, B, C, D, E] +m = min(L) +print((4 + ceil(N / m)))