import std.stdio;
import std.conv;
import std.array;

void main()
{
    long N = readln.split[0].to!long;
    long[] T = new long[5];
    foreach (i; 0..5){
        T[i] = readln.split[0].to!long;
    }

    long minT = T[0];
    foreach (t; T){
        if (t < minT) minT = t;
    }

    long ans = N / minT;
    if (N % minT) ans++;
    ans += 4;

    writeln(ans);
}

