#include <bits/stdc++.h>
using namespace std;

int main() {
  long long N, A, B, C, D, E, F;
  cin >> N >> A >> B >> C >> D >> E;

  F = min({A, B, C, D, E});

  cout << (N + F - 1) / F + 4 << endl;
}