import itertools

import math

import fractions

import functools

import copy

n = int(eval(input()))

a = int(eval(input()))

b = int(eval(input()))

c = int(eval(input()))

d = int(eval(input()))

e = int(eval(input()))

original = [a,b,c,d,e]



print((math.ceil(n / min(original))+4))
import math





def main():

    n = int(eval(input()))

    # n, m = map(int, input().split())

    # a = list(map(int, input().split()))

    # s = input()

    # h = [int(input()) for _ in rane(n)]



    a = int(eval(input()))

    b = int(eval(input()))

    c = int(eval(input()))

    d = int(eval(input()))

    e = int(eval(input()))

    print((math.ceil(n / min(a, b, c, d, e)) + 4))





if __name__ == '__main__':

    main()



import itertools
import math
import fractions
import functools
import copy

n = int(eval(input()))
a = int(eval(input()))
b = int(eval(input()))
c = int(eval(input()))
d = int(eval(input()))
e = int(eval(input()))
original = [a, b, c, d, e]
print((math.ceil(n / min(original)) + 4))

import math


def main():
    n = int(eval(input()))
    # n, m = map(int, input().split())
    # a = list(map(int, input().split()))
    # s = input()
    # h = [int(input()) for _ in rane(n)]
    a = int(eval(input()))
    b = int(eval(input()))
    c = int(eval(input()))
    d = int(eval(input()))
    e = int(eval(input()))
    print((math.ceil(n / min(a, b, c, d, e)) + 4))


if __name__ == "__main__":
    main()

-import itertools -import fractions -import functools -import copy -n = int(eval(input())) -a = int(eval(input())) -b = int(eval(input())) -c = int(eval(input())) -d = int(eval(input())) -e = int(eval(input())) -original = [a, b, c, d, e] -print((math.ceil(n / min(original)) + 4)) + +def main(): +    n = int(eval(input())) +    # n, m = map(int, input().split()) +    # a = list(map(int, input().split())) +    # s = input() +    # h = [int(input()) for _ in rane(n)] +    a = int(eval(input())) +    b = int(eval(input())) +    c = int(eval(input())) +    d = int(eval(input())) +    e = int(eval(input())) +    print((math.ceil(n / min(a, b, c, d, e)) + 4)) + + +if __name__ == "__main__": +    main()