def ii2ss(n):

    ss = []

    for i in range(n):

        ss.append(eval(input()))

    return ss



def sp2nn(sp, sep=' '):

    return [int(s) for s in sp.split(sep)]



def ss2nn(ss):

    return [int(s) for s in list(ss)]



import math

def main(ss):

    N, A, B, C, D, E = ss2nn(ss)

    m = min(A, B, C, D, E)

    return math.ceil(N / m) + 4



ss = ii2ss(6)

print((main(ss)))
# AtCoder Beginner Contest 123

# https://atcoder.jp/contests/abc123

import sys



s2nn = lambda s: [int(c) for c in s.split(' ')]

ss2nn = lambda ss: [int(s) for s in list(ss)]

ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]

i2s = lambda: sys.stdin.readline().rstrip()

i2n = lambda: int(i2s())

i2nn = lambda: s2nn(i2s())

ii2ss = lambda n: [sys.stdin.readline() for _ in range(n)]

ii2nn = lambda n: ss2nn(ii2ss(n))

ii2nnn = lambda n: ss2nnn(ii2ss(n))



import math

def main():

    N = i2n()

    ABCDE = ii2nn(5)

    m = min(ABCDE)

    n = int(math.ceil(N / m)) + 4

    print(n)



main()
def ii2ss(n):
    ss = []
    for i in range(n):
        ss.append(eval(input()))
    return ss


def sp2nn(sp, sep=" "):
    return [int(s) for s in sp.split(sep)]


def ss2nn(ss):
    return [int(s) for s in list(ss)]


import math


def main(ss):
    N, A, B, C, D, E = ss2nn(ss)
    m = min(A, B, C, D, E)
    return math.ceil(N / m) + 4


ss = ii2ss(6)
print((main(ss)))

# AtCoder Beginner Contest 123
# https://atcoder.jp/contests/abc123
import sys

s2nn = lambda s: [int(c) for c in s.split(" ")]
ss2nn = lambda ss: [int(s) for s in list(ss)]
ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [sys.stdin.readline() for _ in range(n)]
ii2nn = lambda n: ss2nn(ii2ss(n))
ii2nnn = lambda n: ss2nnn(ii2ss(n))
import math


def main():
    N = i2n()
    ABCDE = ii2nn(5)
    m = min(ABCDE)
    n = int(math.ceil(N / m)) + 4
    print(n)


main()

-def ii2ss(n): -    ss = [] -    for i in range(n): -        ss.append(eval(input())) -    return ss +# AtCoder Beginner Contest 123 +# https://atcoder.jp/contests/abc123 +import sys - -def sp2nn(sp, sep=" "): -    return [int(s) for s in sp.split(sep)] - - -def ss2nn(ss): -    return [int(s) for s in list(ss)] - - +s2nn = lambda s: [int(c) for c in s.split(" ")] +ss2nn = lambda ss: [int(s) for s in list(ss)] +ss2nnn = lambda ss: [s2nn(s) for s in list(ss)] +i2s = lambda: sys.stdin.readline().rstrip() +i2n = lambda: int(i2s()) +i2nn = lambda: s2nn(i2s()) +ii2ss = lambda n: [sys.stdin.readline() for _ in range(n)] +ii2nn = lambda n: ss2nn(ii2ss(n)) +ii2nnn = lambda n: ss2nnn(ii2ss(n)) -def main(ss): -    N, A, B, C, D, E = ss2nn(ss) -    m = min(A, B, C, D, E) -    return math.ceil(N / m) + 4 +def main(): +    N = i2n() +    ABCDE = ii2nn(5) +    m = min(ABCDE) +    n = int(math.ceil(N / m)) + 4 +    print(n) -ss = ii2ss(6) -print((main(ss))) +main()