import std.functional,
       std.algorithm,
       std.typecons,
       std.bigint,
       std.string,
       std.traits,
       std.array,
       std.range,
       std.stdio,
       std.conv,
       std.math;

T read_num(T)() { return readln.chomp.to!T; }

T min(T)(T a, T b) { return a < b ? a : b; }

void main() {
  long N = read_num!long;
  long A = read_num!long;
  long B = read_num!long;
  long C = read_num!long;
  long D = read_num!long;
  long E = read_num!long;
  long x = min(A, min(B, min(C, min(D, E))));

  long ans = 4 + N / x;
  ans += !!(N % x);

  writeln(ans);
}