from math import ceil





def main():

    l = [int(eval(input())) for _ in range(6)]

    n, a, b, c, d, e = l

    group = ceil(n / min(a, b, c, d, e))

    print((4 + group))





if __name__ == '__main__':

    main()



from math import ceil





def main():

    n = int(eval(input()))

    required_times = [int(eval(input())) for _ in range(5)]

    groups = ceil(n / min(required_times))

    print((groups + 4))





if __name__ == '__main__':

    main()



from math import ceil


def main():
    l = [int(eval(input())) for _ in range(6)]
    n, a, b, c, d, e = l
    group = ceil(n / min(a, b, c, d, e))
    print((4 + group))


if __name__ == "__main__":
    main()

from math import ceil


def main():
    n = int(eval(input()))
    required_times = [int(eval(input())) for _ in range(5)]
    groups = ceil(n / min(required_times))
    print((groups + 4))


if __name__ == "__main__":
    main()

-    l = [int(eval(input())) for _ in range(6)] -    n, a, b, c, d, e = l -    group = ceil(n / min(a, b, c, d, e)) -    print((4 + group)) +    n = int(eval(input())) +    required_times = [int(eval(input())) for _ in range(5)] +    groups = ceil(n / min(required_times)) +    print((groups + 4))