#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
  ll n, a, b, c, d, e;
  cin >> n >> a >> b >> c >> d >> e;
  ll minn = min({a,b,c,d,e});
  ll time = (n-1)/minn + 5;
  cout << time << endl;
}