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() {
  double N = read_num!double;
  double A = read_num!double;
  double B = read_num!double;
  double C = read_num!double;
  double D = read_num!double;
  double E = read_num!double;

  int ans = 4 + ceil(N / min(A, min(B, min(C, min(D, E))))).to!int;
  writeln(ans);
}