using System;
using System.Linq;
using System.Collections.Generic;

class Program
{
    static void Main(string[] args)
    {
        var N = long.Parse(Console.ReadLine());
        var cities = new long[5];
        var X = long.MaxValue;
        for (int i = 0; i < cities.Length; i++)
        {
            cities[i] = long.Parse(Console.ReadLine());
            X = Math.Min(cities[i], X);
        }

        // 切り上げ
        long t = (N + X - 1)/X + 4;
        Console.WriteLine(t);
    }

}

