#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n, a, b, c, d, e;
  cin >> n >> a >> b >> c >> d >> e;
  long long m = min({a, b, c, d, e});
  long long cnt = 4;
  if (n <= m) {
    cnt += 1;
  } else {
    cnt += n / m + (bool)(n % m);
  }
  cout << cnt << endl;
}
