#include <bits/stdc++.h>
using ll = long long;
int main()
{
  ll N, A, B, C, D, E;
  std::cin >> N >> A >> B>> C >> D>> E;
  const ll m = std::min({A,B,C,D,E});
  std::cout << (N+m-1)/m+4LL<<std::endl;
  return 0;
}