#include <bits/stdc++.h>
using namespace std;
int dy[] = {0, 0, 1, -1, 0};
int dx[] = {1, -1, 0, 0, 0};
int main() {
  long long N, A, B, C, D, E;
  cin >> N;
  vector<long long> a(5);
  for (int i = 0; i < 5; i++) {
    cin >> a[i];
  }
  long long mf, m = 999999999999;
  for (int i = 0; i < 5; i++) {
    if (a[i] < m) {
      mf = i;
      m = a[i];
    }
  }
  long long ans = 5 + ceil(N / m);
  cout << ans << endl;
}
