#include <bits/stdc++.h>
using namespace std;
int main() {
  long N;
  vector<long> a(5);
  cin >> N >> a[0] >> a[1] >> a[2] >> a[3] >> a[4];
  sort(a.begin(), a.end());
  if (N % a[0] != 0) {
    cout << N / a[0] + 5 << endl;
  } else {
    cout << N / a[0] + 4 << endl;
  }
  return 0;
}
